Adapter to feed a ffmpeg stream to a generic audio output.
More...
#include <ffmpegplayer.h>
|
| static LavAdapter * | getOutput (const AudioSettings &settings, const AVCodecContext *context, const AVStream *stream) |
| | Choose an output, then get an adapter for libav and set it up to match the output's format. More...
|
| |
| | LavAdapter (const AVCodecContext *codec, const AVStream *stream, const AVSampleFormat output_format) |
| | Adapt whatever output for input from ffmpeg. More...
|
| |
| bool | playFilteredPackets (const bool eof_return_value=true) |
| | Read all the resulting frames coming out of the filter stack, and push them to the outputter. More...
|
| |
| void | flush () |
| | Play any frames buffered in the filter. More...
|
| |
Adapter to feed a ffmpeg stream to a generic audio output.
◆ LavGenericAdapter()
| Audio::LavGenericAdapter::LavGenericAdapter |
( |
const AVCodecContext * |
codec, |
|
|
const AVStream * |
stream, |
|
|
Output * |
out, |
|
|
const AVSampleFormat |
output_format |
|
) |
| |
Adapt whatever output for input from ffmpeg.
- Parameters
-
| codec | The ffmpeg codec context. |
| stream | A stream from whence audio will arrive. |
| out | An output mechanism. |
| output_format | The format required by the outputter. |
◆ ~LavGenericAdapter()
| Audio::LavGenericAdapter::~LavGenericAdapter |
( |
| ) |
|
◆ playFrame()
| bool Audio::LavGenericAdapter::playFrame |
( |
AVFrame * |
frame | ) |
|
|
overridevirtual |
Send a processed frame to the audio output device.
- Parameters
-
| frame | The audio frame to play. |
- Returns
- True on success, false on error.
Implements Audio::LavAdapter.
◆ output
| std::unique_ptr<Output> Audio::LavGenericAdapter::output |
|
private |
The documentation for this class was generated from the following files: