How to decode audio streams in C/C++ using libav*

This post presents the notions and thought process behind audio processing using ffmpeg&rsquo;s libav* , with annotated example code. We&rsquo;ll also see how to use a FIFO queue to efficiently process fixed-size chunks of audio data. The libav* set of libraries is the foundation behind the ubiquitous ffmpeg , and has a reputation for having hard API to use - most people [citation needed] prefer…