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

◆ SoundFileBridge()

MayaFlux::Buffers::SoundFileBridge::SoundFileBridge ( uint32_t  channel_id,
const std::shared_ptr< Kakshya::SoundFileContainer > &  file_container,
uint32_t  source_channel = 0 
)

Construct a file-to-stream bridge.

Parameters
channel_idChannel identifier for this buffer
file_containerAudio file to read from
source_channelWhich channel in the file to read (default: 0)

Definition at line 15 of file SoundFileBridge.cpp.

18 : SoundContainerBuffer(channel_id, Config::get_buffer_size(), std::dynamic_pointer_cast<Kakshya::StreamContainer>(file_container), source_channel)
19{
20}
SoundContainerBuffer(uint32_t channel_id, uint32_t num_samples, const std::shared_ptr< Kakshya::StreamContainer > &container, uint32_t source_channel=0)
Construct a SoundContainerBuffer for a specific channel and container.
uint32_t get_buffer_size()
Gets the buffer size from the default engine.
Definition Config.cpp:51