|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| bool MayaFlux::IO::AudioEncodeContext::drain | ( | FFmpegMuxContext & | mux | ) |
Flush the FIFO remainder and encoder internal delay to the mux.
Pads the final partial FIFO frame with silence if needed, sends it, then sends a null frame to signal EOS to the encoder and drains all buffered output packets. Call once before FFmpegMuxContext::close().
| mux | Mux context to receive remaining packets. |
Definition at line 288 of file AudioEncodeContext.cpp.
References codec_context, drain_packets(), fifo, is_valid(), m_last_error, and send_fifo_frame().
Referenced by MayaFlux::IO::SoundFileWriter::worker_loop().
Here is the call graph for this function:
Here is the caller graph for this function: