|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| bool MayaFlux::IO::SoundFileWriter::open | ( | const std::string & | filepath, |
| uint32_t | channels, | ||
| uint32_t | sample_rate, | ||
| AVCodecID | explicit_codec | ||
| ) |
Open the output file and spawn the worker thread.
Format is inferred from the filepath extension (wav, flac, ogg, mp4, mkvā¦). Pass explicit_codec to override the container's default audio codec.
| filepath | Destination file path. Extension determines container. |
| channels | Number of interleaved channels in all submitted data. |
| sample_rate | PCM sample rate in Hz. |
| explicit_codec | Encoder override; AV_CODEC_ID_NONE = container default. |
Definition at line 46 of file SoundFileWriter.cpp.
References m_channels, m_close_future, m_close_promise, m_closing, m_open, m_worker, set_error(), and worker_loop().
Here is the call graph for this function: