|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| std::shared_ptr< SoundFileWriter > MayaFlux::IO::IOManager::create_writer | ( | const std::string & | filepath, |
| uint32_t | channels, | ||
| uint32_t | sample_rate = 48000, |
||
| AVCodecID | codec_id = AV_CODEC_ID_NONE |
||
| ) |
Construct an open SoundFileWriter the caller drives manually.
Allocates, opens, and returns a writer ready to accept write() calls. IOManager does not track this writer; the caller is responsible for calling close() when done.
| filepath | Output file path. Extension determines container format. |
| channels | Number of channels in all submitted data. |
| sample_rate | PCM sample rate in Hz. |
| codec_id | Encoder override; AV_CODEC_ID_NONE = container default. |
Definition at line 331 of file IOManager.cpp.
References MayaFlux::Journal::FileIO, MayaFlux::Journal::IO, m_save_tasks_mutex, m_writers, and MF_ERROR.