Phonon

KDE 4.5 PyKDE API Reference

- KDE's Python API

# Phonon Namespace Reference

`from PyKDE4.phonon.Phonon import *`

## Detailed Description

## Class Index

A | GlobalConfig (Phonon) | P
AbstractAudioOutput (Phonon) | M | Path (Phonon)
AbstractMediaStream (Phonon) | MediaController (Phonon) | S
AbstractVideoOutput (Phonon) | MediaNode (Phonon) | SeekSlider (Phonon)
AudioDataOutput (Phonon) | MediaObject (Phonon) | StreamInterface (Phonon)
AudioOutput (Phonon) | MediaSource (Phonon) | V
E | N | VideoPlayer (Phonon)
Effect (Phonon) | Notifier (Phonon.BackendCapabilities) | VideoWidget (Phonon)
EffectParameter (Phonon) | O | VideoWidgetInterface (Phonon)
EffectWidget (Phonon) | ObjectDescriptionData (Phonon) | VolumeFaderEffect (Phonon)
G | ObjectDescriptionModelData (Phonon) | VolumeSlider (Phonon)

## Enumerations
ObjectDescriptionType | { AudioOutputDeviceType, EffectType, AudioChannelType, SubtitleType, AudioCaptureDeviceType }
## Functions
Phonon.Path | createPath (Phonon.MediaNode source, Phonon.MediaNode sink)
Phonon.MediaObject | createPlayer (Phonon::Category category, Phonon.MediaSource source=Phonon.MediaSource())
long | qHash (Phonon.EffectParameter param)

## Enumeration Documentation

ObjectDescriptionType

Defines the type of information that is contained in a ObjectDescription object.

Enumerator:

  AudioOutputDeviceType |
  EffectType |
  AudioChannelType |
  SubtitleType |
  AudioCaptureDeviceType |

## Function Documentation

Phonon.Path createPath | ( | Phonon.MediaNode | source,
|  | Phonon.MediaNode | sink
| ) |  |  |

Creates a new Path connecting two MediaNodes.

The implementation will automatically select the right format and media type. E.g. connecting a MediaObject and AudioOutput will create a Path object connecting the audio. This might be represented as PCM or perhaps even AC3 depending on the AudioOutput object.

Parameters:

  | source | The MediaNode to connect an output from

Parameters:

  | sink | The MediaNode to connect to.

Phonon.MediaObject createPlayer | ( | Phonon::Category | category,
|  | Phonon.MediaSource | source=Phonon.MediaSource()
| ) |  |  |

Convenience function to create a MediaObject and AudioOutput connected by a path.

long qHash | ( | Phonon.EffectParameter | param
| ) |  |  |

\class EffectParameter effectparameter.h Phonon/EffectParameter This class describes one parameter of an effect.

Author:
  Matthias Kretz <kretz@kde.org>

See also:
  Effect