#include <audiooutputinterface.h>
Definition at line 91 of file audiooutputinterface.h.
Public Member Functions | |
virtual bool | setOutputDevice (const Phonon::AudioOutputDevice &)=0 |
Requests to change the current output device. More... | |
PHONON_EXPORT QList< QPair< QByteArray, QString > > | deviceAccessListFor (const Phonon::AudioOutputDevice &) const |
Helper function for backends to get a list of (driver, handle) pairs for AudioOutputDevice objects that are listed by the platform plugin. More... | |
Public Member Functions inherited from AudioOutputInterface40 | |
virtual | ~AudioOutputInterface40 () |
virtual qreal | volume () const =0 |
Returns the current software volume. More... | |
virtual void | setVolume (qreal)=0 |
Sets the new current software volume. More... | |
virtual int | outputDevice () const =0 |
Returns the index of the device that is used. More... | |
virtual bool | setOutputDevice (int)=0 |
|
pure virtual |
Requests to change the current output device.
true
if the requested device works and is used after this call. false
if something failed and the device is not used after this call. PHONON_EXPORT QList<QPair<QByteArray, QString> > deviceAccessListFor | ( | const Phonon::AudioOutputDevice & | ) | const |
Helper function for backends to get a list of (driver, handle) pairs for AudioOutputDevice objects that are listed by the platform plugin.
Example:
At the time of this writing the following driver strings are known to be in use:
alsa:
The handle is the string to pass to snd_pcm_open (e.g. "dmix:CARD=0,DEV=1") oss:
The handle is the device file (e.g. "/dev/dsp") pulseaudio:
The handle contains the server string and the sink/source name separated by a newline character. (e.g. unix:/tmp/pulse-mkretz/native.pci_8086_293e_sound_card_0_alsa_playback_0)