MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ attach_readers()

void MayaFlux::Core::SerialInputBackend::attach_readers ( uint32_t device_id,
const std::shared_ptr< SerialDevice > & device )
private

Definition at line 510 of file SerialInputBackend.cpp.

511{
512 if (!device) {
513 return;
514 }
515 std::lock_guard lock(m_reader_mutex);
516 for (auto& record : m_records) {
517 if (record.device_id != device_id || record.attached_to.lock() == device) {
518 continue;
519 }
520 record.device_token = device->add_reader(record.spec, record.stamp, record.callback);
521 record.attached_to = device;
522 }
523}
std::vector< ReaderRecord > m_records
std::pair< std::shared_ptr< Kriya::BufferPipeline >, std::shared_ptr< Buffers::AudioBuffer > > record(const std::shared_ptr< Kakshya::DynamicSoundStream > &stream, uint32_t input_channel, double seconds, std::optional< uint32_t > monitor, uint32_t channel)
Record a live input channel into a stream for a number of seconds.
Definition Rigs.cpp:262

References attach_readers(), m_reader_mutex, m_records, and MayaFlux::record().

Referenced by add_reader(), attach_readers(), and open_device().

Here is the call graph for this function:
Here is the caller graph for this function: