Phonon  4.7.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
Public Member Functions | List of all members
Phonon::AudioOutputInterface40 Class Referenceabstract
Inheritance diagram for Phonon::AudioOutputInterface40:
Phonon::AudioOutputInterface42 Phonon::AudioOutputInterface47

Public Member Functions

virtual qreal volume () const =0
 
virtual void setVolume (qreal)=0
 
virtual int outputDevice () const =0
 
virtual bool setOutputDevice (int)=0
 

Member Function Documentation

virtual int Phonon::AudioOutputInterface40::outputDevice ( ) const
pure virtual

Returns the index of the device that is used. The index is the number returned from BackendInterface::objectDescriptionIndexes(AudioOutputDeviceType).

virtual bool Phonon::AudioOutputInterface40::setOutputDevice ( int  )
pure virtual
Deprecated:

Requests to change the current output device to the one identified by the passed index.

The index is the number returned from BackendInterface::objectDescriptionIndexes(AudioOutputDeviceType).

Returns
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.
virtual void Phonon::AudioOutputInterface40::setVolume ( qreal  )
pure virtual

Sets the new current software volume.

A value of 0.0 means muted, 1.0 means unchanged, 2.0 means double voltage (i.e. all samples are multiplied by 2).

Every time the volume in the backend changes it should emit volumeChanged(qreal), also inside this function.

virtual qreal Phonon::AudioOutputInterface40::volume ( ) const
pure virtual

Returns the current software volume.

A value of 0.0 means muted, 1.0 means unchanged, 2.0 means double voltage (i.e. all samples are multiplied by 2).


The documentation for this class was generated from the following file: