|
pianod2
multisource multiuser scriptable networked music player
|
Classes dealing with audio output drivers and decoding/playing audio files. More...
Classes | |
| struct | AudioFormat |
| Audio format, somewhat ripped off from libao. More... | |
| class | AudioException |
| Exception for audio output problems. More... | |
| class | Initializer |
| Initialize the audio output libraries; uninitialize on destruction. More... | |
| class | Output |
| Base audio output class (abstract). More... | |
| class | AvDeviceOutput |
| Output class for libavdevice. More... | |
| struct | FrameDeleter |
| struct | PacketDeleter |
| class | LavAudioException |
| Exception for ffmpeg audio output problems. More... | |
| class | LavAdapter |
| Adapter to feed a ffmpeg stream to an audio output. More... | |
| class | LavGenericAdapter |
| Adapter to feed a ffmpeg stream to a generic audio output. More... | |
| class | LibavMediaReader |
| Base class for reading media streams via ffmpeg. More... | |
| class | LavPlayer |
| ffmpeg audio player More... | |
| class | GstreamerAudioException |
| Exception for gstreamer audio output problems. More... | |
| class | GstreamerSimplePipeline |
| Base class for gstreamer pipelines. More... | |
| class | GstreamerDoublePipeline |
| Class for gstreamer pipelines that need sources wired to downstream elements dynamically when autoplugging. More... | |
| class | GstreamerMediaReader |
| Class for reading media streams via gstreamer. More... | |
| class | GstreamerReaderWithBus |
| Base class for gstreamer pipelines, both readers and outputs. More... | |
| class | GstreamerPlayer |
| Play media or a stream using gstreamer. More... | |
| class | GstreamerOutput |
| Audio output class utilizing gstreamer for output. More... | |
| class | LibaoOutput |
| Audio output class utilizing libao for output. More... | |
| class | LibsdlOutput |
| Audio output class utilizing SDL for output. More... | |
| class | AVFoundationPlayer |
| Base class for OS X's AVFoundation audio player. More... | |
Enumerations | |
| enum | SampleArrangement { Native , Big , Little } |
| enum | SampleSignedness { Signed , Unsigned } |
Functions | |
| static const AVOutputFormat * | findDevice (const AudioSettings &settings) |
| Find the audio output device. More... | |
| void | flogav (const char *func, int err) |
| Log an ffmpeg error. More... | |
| static void | audio_fetch_callback (void *context, uint8_t *buffer, int length) |
| The audio function callback takes the following parameters: buffer: A pointer to the audio buffer to be filled length: The length (in bytes) of the audio buffer. More... | |
| Media::Player * | getAVFoundationPlayer (const AudioSettings &AudioSettings, const std::string &media_url, float initial_audio_gain) |
| Old-style C interface to provide bridge from C++ to Objective-C compiled code. More... | |
Variables | |
| union { | |
| unsigned char Audio::bytes [4] | |
| uint32_t Audio::value | |
| } | B4_host_order = { { 0, 1, 2, 3 } } |
| Constants to determine byte ordering on-the-fly. More... | |
| union { | |
| unsigned char Audio::bytes [2] | |
| uint16_t Audio::value | |
| } | B2_host_order = { { 0, 1 } } |
| Constants to determine byte ordering of 2-byte values. More... | |
Classes dealing with audio output drivers and decoding/playing audio files.
|
static |
The audio function callback takes the following parameters: buffer: A pointer to the audio buffer to be filled length: The length (in bytes) of the audio buffer.

|
static |
Find the audio output device.
If a driver is specified in the settings, use that. Otherwise, use the first device found.
| settings | The audio settings to match. |


| void Audio::flogav | ( | const char * | func, |
| int | err | ||
| ) |
Log an ffmpeg error.
| func | The function name causing the error. |
| err | The ffmpeg error number. |


| Media::Player * Audio::getAVFoundationPlayer | ( | const AudioSettings & | AudioSettings, |
| const std::string & | media_url, | ||
| float | initial_audio_gain | ||
| ) |
Old-style C interface to provide bridge from C++ to Objective-C compiled code.

| const { ... } Audio::B2_host_order |
Constants to determine byte ordering of 2-byte values.
| const { ... } Audio::B4_host_order |
Constants to determine byte ordering on-the-fly.
Credit to Cristoph
| unsigned char Audio::bytes[2] |
| uint16_t Audio::value |