AudioOutput Class Reference
from PyKDE4.phonon import *
Namespace: Phonon.AudioOutput
Detailed Description
\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
Signals |
| mutedChanged (bool a0) |
| outputDeviceChanged (Phonon.AudioOutputDevice newAudioOutputDevice) |
| volumeChanged (float newVolume) |
Methods |
| __init__ (self, Phonon::Category category, QObject parent=0) |
| __init__ (self, QObject parent=0) |
Phonon::Category | category (self) |
bool | isMuted (self) |
| mutedChanged (self, bool a0) |
QString | name (self) |
Phonon.AudioOutputDevice | outputDevice (self) |
| outputDeviceChanged (self, Phonon.AudioOutputDevice newAudioOutputDevice) |
| setMuted (self, bool mute) |
| setName (self, QString newName) |
bool | setOutputDevice (self, Phonon.AudioOutputDevice newAudioOutputDevice) |
| setVolume (self, float newVolume) |
| setVolumeDecibel (self, float newVolumeDecibel) |
float | volume (self) |
| volumeChanged (self, float newVolume) |
float | volumeDecibel (self) |
Method Documentation
__init__ |
( |
self, |
|
|
|
Phonon::Category |
category, |
|
|
QObject |
parent=0 |
|
) |
|
|
|
__init__ |
( |
self, |
|
|
|
QObject |
parent=0 |
|
) |
|
|
|
Phonon::Category category |
( |
|
self ) |
|
Returns the category of this output.
- See also:
- AudioOutput(Phonon.Category, QObject *)
mutedChanged |
( |
self, |
|
|
|
bool |
a0 |
|
) |
|
|
|
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.
- Signal syntax:
QObject.connect(source, SIGNAL("mutedChanged(bool)"), target_slot)
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
- Signal syntax:
QObject.connect(source, SIGNAL("outputDeviceChanged(const const Phonon::AudioOutputDevice&)"), target_slot)
setMuted |
( |
self, |
|
|
|
bool |
mute |
|
) |
|
|
|
setVolume |
( |
self, |
|
|
|
float |
newVolume |
|
) |
|
|
|
setVolumeDecibel |
( |
self, |
|
|
|
float |
newVolumeDecibel |
|
) |
|
|
|
volumeChanged |
( |
self, |
|
|
|
float |
newVolume |
|
) |
|
|
|
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.
- Signal syntax:
QObject.connect(source, SIGNAL("volumeChanged(qreal)"), target_slot)
float volumeDecibel |
( |
|
self ) |
|