|
pianod2
multisource multiuser scriptable networked music player
|
Base audio output class (abstract). More...
#include <audiooutput.h>

Public Member Functions | |
| virtual | ~Output () |
| virtual bool | play (void *buffer, unsigned number_of_bytes)=0 |
| Play output. More... | |
| char | bytesPerSample () |
Static Public Member Functions | |
| static bool | isValidOutput (const AudioSettings &settings) |
| Check if audio settings are valid. More... | |
| static bool | outputCanCrossfade (const AudioSettings &settings) |
| Check if audio settings are valid. More... | |
| static Output * | getOutput (const AudioSettings &settings, const AudioFormat &format) |
| Factory gets whatever kind of output is best, or requested by the audio settings. More... | |
| static void | reportLibrariesAndVersions (int verbose) |
| Report audio libraries in use, and their versions. More... | |
Protected Attributes | |
| char | bytes_per_sample_set |
Base audio output class (abstract).
|
inlinevirtual |
|
inline |
|
static |
Factory gets whatever kind of output is best, or requested by the audio settings.
| settings | Where to send the audio output. |
| format | The form in which the audio data will arrive. |
| AudioException | or a derivative if opening/setting up the device failed. |


|
static |
Check if audio settings are valid.
| settings | Where to send the audio output. |
| AudioException | or a derivative if opening/setting up the device failed. |


|
static |
Check if audio settings are valid.
| settings | Where to send the audio output. |
| AudioException | or a derivative if opening/setting up the device failed. |


|
pure virtual |
Play output.
| buffer | The samples, in packed (interleaved) format if multichannel. |
| number_of_bytes | Size of the buffer; number of samples is determined by the audio format set when opening the channel. |
Implemented in Audio::LibsdlOutput, Audio::LibaoOutput, Audio::GstreamerOutput, and Audio::AvDeviceOutput.
|
static |
Report audio libraries in use, and their versions.
| verbose | If > 0, include more detail. |

|
protected |