|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| uint32_t MayaFlux::IO::IOManager::capture_output | ( | const std::string & | filepath, |
| AVCodecID | codec_id = AV_CODEC_ID_NONE |
||
| ) |
Begin continuous capture of live audio output to a file.
Registers an observer with AudioBackendService. Each output cycle the observer drives an AudioOutputContainer and posts its processed_data to a SoundFileWriter. Returns an opaque capture id for use with stop_capture().
Returns 0 and logs an error if AudioBackendService is unavailable.
| filepath | Output file path. |
| codec_id | Encoder override; AV_CODEC_ID_NONE = container default. |
Definition at line 380 of file IOManager.cpp.
References MayaFlux::Core::GlobalStreamInfo::ChannelConfig::channels, MayaFlux::IO::IOManager::AudioCaptureState::container, MayaFlux::Journal::FileIO, MayaFlux::Registry::BackendRegistry::get_service(), MayaFlux::Registry::BackendRegistry::instance(), MayaFlux::Journal::IO, m_audio_backend_service, m_audio_captures, m_audio_captures_mutex, m_save_tasks_mutex, m_stream_info, m_writers, MF_ERROR, MayaFlux::Core::GlobalStreamInfo::output, MayaFlux::Registry::Service::AudioBackendService::register_output_observer, and MayaFlux::Core::GlobalStreamInfo::sample_rate.
Here is the call graph for this function: