Logo Search packages:      
Sourcecode: qt4-x11 version File versions

src.3rdparty.kdelibs.phonon.path.h

//! [0]

MediaObject *media = new MediaObject;
AudioOutput *output = new AudioOutput(Phonon::MusicCategory);
Path path = Phonon::createPath(media, output);
Q_ASSERT(path.isValid()); // for this simple case the path should always be
                          //valid - there are unit tests to ensure it
// insert an effect
QList<EffectDescription> effectList = BackendCapabilities::availableAudioEffects();
if (!effectList.isEmpty()) {
    Effect *effect = path.insertEffect(effectList.first());
}
 * //! [0]



Generated by  Doxygen 1.6.0   Back to index