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