|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::IO::IOManager::write | ( | const std::shared_ptr< Kakshya::SoundStreamContainer > & | container, |
| const std::string & | filepath, | ||
| AVCodecID | codec_id = AV_CODEC_ID_NONE |
||
| ) |
Write a SoundStreamContainer to file in one shot.
Opens a writer, posts the container's full data, closes, and stores the encode future in m_save_tasks. Non-blocking; returns immediately. Container metadata (sample_rate, channels) drives the encoder parameters.
| container | Source container; any SoundStreamContainer child. |
| filepath | Output file path. |
| codec_id | Encoder override; AV_CODEC_ID_NONE = container default. |
Definition at line 350 of file IOManager.cpp.
References MayaFlux::Journal::FileIO, MayaFlux::Journal::IO, m_save_tasks, m_save_tasks_mutex, and MF_ERROR.