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

◆ setup_fifo()

bool MayaFlux::IO::AudioEncodeContext::setup_fifo ( )
private

Definition at line 205 of file AudioEncodeContext.cpp.

206{
207 int frame_size = codec_context->frame_size > 0
208 ? codec_context->frame_size
209 : 4096;
210
211 fifo = av_audio_fifo_alloc(
212 codec_context->sample_fmt,
213 static_cast<int>(m_channels),
214 frame_size * 2);
215
216 if (!fifo) {
217 m_last_error = "av_audio_fifo_alloc failed";
218 return false;
219 }
220
221 return true;
222}
AVCodecContext * codec_context
Owned; freed in destructor.
AVAudioFifo * fifo
Owned; freed in destructor.

References codec_context, fifo, m_channels, and m_last_error.

Referenced by open().

+ Here is the caller graph for this function: