Diffstat (limited to 'libopie2/examples/opiemm/osoundsystemdemo/osoundsystemdemo.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/examples/opiemm/osoundsystemdemo/osoundsystemdemo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libopie2/examples/opiemm/osoundsystemdemo/osoundsystemdemo.cpp b/libopie2/examples/opiemm/osoundsystemdemo/osoundsystemdemo.cpp index 79bf327..8d421fd 100644 --- a/libopie2/examples/opiemm/osoundsystemdemo/osoundsystemdemo.cpp +++ b/libopie2/examples/opiemm/osoundsystemdemo/osoundsystemdemo.cpp | |||
@@ -1,26 +1,28 @@ | |||
1 | #include <opie2/osoundsystem.h> | 1 | #include <opie2/osoundsystem.h> |
2 | 2 | ||
3 | using namespace Opie::MM; | ||
4 | |||
3 | int main( int argc, char** argv ) | 5 | int main( int argc, char** argv ) |
4 | { | 6 | { |
5 | qDebug( "OPIE Sound System Demo" ); | 7 | qDebug( "OPIE Sound System Demo" ); |
6 | 8 | ||
7 | OSoundSystem* sound = OSoundSystem::instance(); | 9 | OSoundSystem* sound = OSoundSystem::instance(); |
8 | 10 | ||
9 | OSoundSystem::CardIterator it = sound->iterator(); | 11 | OSoundSystem::CardIterator it = sound->iterator(); |
10 | /* | 12 | /* |
11 | while ( it.current() ) | 13 | while ( it.current() ) |
12 | { | 14 | { |
13 | qDebug( "DEMO: OSoundSystem contains Interface '%s'", (const char*) it.current()->name() ); | 15 | qDebug( "DEMO: OSoundSystem contains Interface '%s'", (const char*) it.current()->name() ); |
14 | ++it; | 16 | ++it; |
15 | } | 17 | } |
16 | 18 | ||
17 | */ | 19 | */ |
18 | OSoundCard* card = it.current(); | 20 | OSoundCard* card = it.current(); |
19 | 21 | ||
20 | OMixerInterface* mixer = card->mixer(); | 22 | OMixerInterface* mixer = card->mixer(); |
21 | 23 | ||
22 | QStringList channels = mixer->allChannels(); | 24 | QStringList channels = mixer->allChannels(); |
23 | 25 | ||
24 | for ( QStringList::Iterator it = channels.begin(); it != channels.end(); ++it ) | 26 | for ( QStringList::Iterator it = channels.begin(); it != channels.end(); ++it ) |
25 | { | 27 | { |
26 | qDebug( "OSSDEMO: Mixer has channel %s", (const char*) *it ); | 28 | qDebug( "OSSDEMO: Mixer has channel %s", (const char*) *it ); |