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:
1.1 KB
|
Line | |
---|
1 | #include <QtGui>
|
---|
2 |
|
---|
3 | #include <phonon/phononnamespace.h>
|
---|
4 | #include <phonon/audiooutput.h>
|
---|
5 | #include <phonon/seekslider.h>
|
---|
6 | #include <phonon/mediaobject.h>
|
---|
7 | #include <phonon/volumeslider.h>
|
---|
8 | #include <phonon/backendcapabilities.h>
|
---|
9 | #include <phonon/effect.h>
|
---|
10 | #include <phonon/effectparameter.h>
|
---|
11 | #include <phonon/objectdescriptionmodel.h>
|
---|
12 | #include <QList>
|
---|
13 |
|
---|
14 | int main(int argv, char **args)
|
---|
15 | {
|
---|
16 | QApplication app(argv, args);
|
---|
17 |
|
---|
18 | //![0]
|
---|
19 | QList<Phonon::EffectDescription> effectDescriptions =
|
---|
20 | Phonon::BackendCapabilities::availableAudioEffects();
|
---|
21 |
|
---|
22 | //![1]
|
---|
23 | QList<Phonon::AudioOutputDevice> audioOutputDevices =
|
---|
24 | Phonon::BackendCapabilities::availableAudioOutputDevices();
|
---|
25 |
|
---|
26 | //![1]
|
---|
27 | foreach (Phonon::EffectDescription effectDescription, effectDescriptions) {
|
---|
28 | Phonon::Effect *effect = new Phonon::Effect(effectDescription);
|
---|
29 |
|
---|
30 | // ... Do something with the effect, like insert it into a media graph
|
---|
31 | }
|
---|
32 |
|
---|
33 | Phonon::AudioOutput *audioOutput = new Phonon::AudioOutput;
|
---|
34 |
|
---|
35 | audioOutput->setOutputDevice(audioOutputDevices[0]);
|
---|
36 | //![0]
|
---|
37 |
|
---|
38 | return app.exec();
|
---|
39 |
|
---|
40 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.