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

◆ setup()

void MayaFlux::Kakshya::SoundFileContainer::setup ( uint64_t  num_frames,
uint32_t  sample_rate,
uint32_t  num_channels 
)

Setup the container with file parameters.

Parameters
num_framesTotal number of frames in the file
sample_rateSample rate of the audio
num_channelsNumber of audio channels

Definition at line 15 of file SoundFileContainer.cpp.

16{
17 std::unique_lock lock(m_data_mutex);
18
19 m_num_frames = num_frames;
20 m_sample_rate = sample_rate;
21 m_num_channels = num_channels;
22
25}
void update_processing_state(ProcessingState new_state) override
Update the processing state of the container.
void lock() override
Acquire a lock for thread-safe access.
@ IDLE
Container is inactive with no data or not ready for processing.

References MayaFlux::Kakshya::IDLE, MayaFlux::Kakshya::SoundStreamContainer::lock(), MayaFlux::Kakshya::SoundStreamContainer::m_data_mutex, MayaFlux::Kakshya::SoundStreamContainer::m_num_channels, MayaFlux::Kakshya::SoundStreamContainer::m_num_frames, MayaFlux::Kakshya::SoundStreamContainer::m_sample_rate, MayaFlux::Kakshya::SoundStreamContainer::setup_dimensions(), and MayaFlux::Kakshya::SoundStreamContainer::update_processing_state().

+ Here is the call graph for this function: