# class AudioOutput

###

Module | phonon
Namespace | Phonon
Class | AudioOutput
Inherits |

\class AudioOutput audiooutput.h Phonon/AudioOutput Class for audio output to the soundcard.

Use this class to define the audio output.

Author Matthias Kretz <kretz@kde.org>

See also Phonon.Ui.VolumeSlider

### methods

- AudioOutput (category, parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  category | Phonon.Category |
  parent | QObject | 0

  Creates a new AudioOutput that defines output to a physical device.

  category - The category can be used by mixer applications to group volume controls of applications into categories. That makes it easier for the user to identify the programs. The category is also used for the default output device that is configured centrally. As an example: often users want to have the audio signal of a VoIP application go to their USB headset while all other sounds should go to the internal soundcard.

  parent - QObject parent

  See also Phonon.categoryToString

  See also outputDevice

- AudioOutput (parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  parent | QObject | 0

- category ( )

  returns Phonon.Category

  Returns the category of this output.

  See also AudioOutput(Phonon.Category, QObject *)

- isMuted ( )

  returns bool

- mutedChanged (a0)

  returns Nothing
  SIGNAL ("mutedChanged (bool)")

  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

  This signal is emitted when the muted property has changed. As this property can change by IPC (DBus) calls a UI element showing the muted property should listen to this signal.

- name ( )

  returns QString

- outputDevice ( )

  returns Phonon.AudioOutputDevice

- outputDeviceChanged (newAudioOutputDevice)

  returns Nothing
  SIGNAL ("outputDeviceChanged (const AudioOutputDevice&)")

  Argument | Type | Default
  --- | --- | ---
  newAudioOutputDevice | Phonon.AudioOutputDevice |

  This signal is emitted when the (hardware) device for the output has changed.

  The change can happen either through setOutputDevice or if the global configuration for the used category has changed.

  See also outputDevice

- setMuted (mute)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  mute | bool |

- setName (newName)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  newName | QString |

- setOutputDevice (newAudioOutputDevice)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  newAudioOutputDevice | Phonon.AudioOutputDevice |

- setVolume (newVolume)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  newVolume | qreal |

- setVolumeDecibel (newVolumeDecibel)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  newVolumeDecibel | qreal |

- volume ( )

  returns qreal

- volumeChanged (newVolume)

  returns Nothing
  SIGNAL ("volumeChanged (qreal)")

  Argument | Type | Default
  --- | --- | ---
  newVolume | qreal |

  This signal is emitted whenever the volume has changed. As the volume can change without a call to setVolume (calls over dbus) this is important to keep a widget showing the current volume up to date.

- volumeDecibel ( )

  returns qreal