|
MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::IO::AudioStreamContext::drain_resampler_init | ( | ) |
Drain any samples buffered inside the resampler.
swr_init() and seek+flush sequences can leave delay-compensation samples inside SwrContext. Calling this discards them so that the next decode_frames() call starts from a clean resampler state. Must be called after open() and after every seek+flush pair.
Definition at line 152 of file AudioStreamContext.cpp.
References channels, and swr_context.
Referenced by open().
Here is the caller graph for this function: