source: trunk/doc/src/snippets/phononeffectparameter.cpp@ 5

Last change on this file since 5 was 2, checked in by Dmitry A. Kuminov, 16 years ago

Initially imported qt-all-opensource-src-4.5.1 from Trolltech.

File size: 824 bytes
Line 
1#include <QtGui>
2
3#include <phonon/backendcapabilities.h>
4#include <phonon/phononnamespace.h>
5#include <phonon/effect.h>
6#include <phonon/effectparameter.h>
7#include <phonon/effectwidget.h>
8
9
10int main(int argv, char **args)
11{
12 QApplication app(argv, args);
13 app.setApplicationName("effectsnippets");
14
15 QList<Phonon::EffectDescription> effects =
16 Phonon::BackendCapabilities::availableAudioEffects();
17
18 Phonon::Effect *effect = new Phonon::Effect(effects.at(3));
19
20//![0]
21 QList<Phonon::EffectParameter> parameters = effect->parameters();
22
23 foreach(Phonon::EffectParameter parameter, parameters) {
24 // Do something with parameter
25 }
26//![0]
27
28//![1]
29 Phonon::EffectWidget *effectWidget = new Phonon::EffectWidget(effect);
30//![1]
31
32 effectWidget->show();
33
34 return app.exec();
35}
Note: See TracBrowser for help on using the repository browser.