author | mickeyl <mickeyl> | 2005-01-29 14:23:27 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-01-29 14:23:27 (UTC) |
commit | 20b3de56573b9e86c6b6041faf684adc8cbb2a45 (patch) (unidiff) | |
tree | e0d91c84dee46d1cce3b0d68fd2c10c3dd7ce3a1 /libopie2/examples/opiemm/osoundsystemdemo | |
parent | 555b999359a5aad999eaaf48632ce85f25125b85 (diff) | |
download | opie-20b3de56573b9e86c6b6041faf684adc8cbb2a45.zip opie-20b3de56573b9e86c6b6041faf684adc8cbb2a45.tar.gz opie-20b3de56573b9e86c6b6041faf684adc8cbb2a45.tar.bz2 |
examples to where they belong
Diffstat (limited to 'libopie2/examples/opiemm/osoundsystemdemo') (more/less context) (show whitespace changes)
3 files changed, 0 insertions, 85 deletions
diff --git a/libopie2/examples/opiemm/osoundsystemdemo/.cvsignore b/libopie2/examples/opiemm/osoundsystemdemo/.cvsignore deleted file mode 100644 index 0c98558..0000000 --- a/libopie2/examples/opiemm/osoundsystemdemo/.cvsignore +++ b/dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | osoundsystemdemo | ||
2 | Makefile* | ||
3 | moc* | ||
4 | *moc | ||
5 | *.o | ||
6 | ~* | ||
7 | |||
diff --git a/libopie2/examples/opiemm/osoundsystemdemo/osoundsystemdemo.cpp b/libopie2/examples/opiemm/osoundsystemdemo/osoundsystemdemo.cpp deleted file mode 100644 index f74a1b9..0000000 --- a/libopie2/examples/opiemm/osoundsystemdemo/osoundsystemdemo.cpp +++ b/dev/null | |||
@@ -1,66 +0,0 @@ | |||
1 | /* | ||
2 | =. This file is part of the Opie Project | ||
3 | .=l. Copyright (C) 2004 Opie Team <opie-devel@handhelds.org> | ||
4 | .>+-= | ||
5 | _;:, .> :=|. This library is free software; you can | ||
6 | .> <`_, > . <= redistribute it and/or modify it under | ||
7 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public | ||
8 | .="- .-=="i, .._ License as published by the Free Software | ||
9 | - . .-<_> .<> Foundation; either version 2 of the License, | ||
10 | ._= =} : or (at your option) any later version. | ||
11 | .%`+i> _;_. | ||
12 | .i_,=:_. -<s. This library is distributed in the hope that | ||
13 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | ||
14 | : .. .:, . . . without even the implied warranty of | ||
15 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | ||
16 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | ||
17 | ..}^=.= = ; Library General Public License for more | ||
18 | ++= -. .` .: details. | ||
19 | : = ...= . :.=- | ||
20 | -. .:....=;==+<; You should have received a copy of the GNU | ||
21 | -_. . . )=. = Library General Public License along with | ||
22 | -- :-=` this library; see the file COPYING.LIB. | ||
23 | If not, write to the Free Software Foundation, | ||
24 | Inc., 59 Temple Place - Suite 330, | ||
25 | Boston, MA 02111-1307, USA. | ||
26 | |||
27 | */ | ||
28 | |||
29 | /* OPIE */ | ||
30 | #include <opie2/osoundsystem.h> | ||
31 | #include <opie2/odebug.h> | ||
32 | |||
33 | using namespace Opie::MM; | ||
34 | |||
35 | int main( int argc, char** argv ) | ||
36 | { | ||
37 | odebug << "OPIE Sound System Demo" << oendl; | ||
38 | |||
39 | OSoundSystem* sound = OSoundSystem::instance(); | ||
40 | |||
41 | OSoundSystem::CardIterator it = sound->iterator(); | ||
42 | /* | ||
43 | while ( it.current() ) | ||
44 | { | ||
45 | odebug << "DEMO: OSoundSystem contains Interface '" << it.current()->name() << "'" << oendl; | ||
46 | ++it; | ||
47 | } | ||
48 | |||
49 | */ | ||
50 | OSoundCard* card = it.current(); | ||
51 | |||
52 | OMixerInterface* mixer = card->mixer(); | ||
53 | |||
54 | QStringList channels = mixer->allChannels(); | ||
55 | |||
56 | for ( QStringList::Iterator it = channels.begin(); it != channels.end(); ++it ) | ||
57 | { | ||
58 | bool stereo = mixer->isStereo( *it ); | ||
59 | odebug << "OSSDEMO: Mixer has channel " << *it << ( stereo ? "[stereo]" : "[mono]" ) << oendl; | ||
60 | odebug << "OSSDEMO: +--- volume " << ( mixer->volume( *it ) & 0xff ) | ||
61 | << " (left) | " << ( mixer->volume( *it ) >> 8 ) << " (right)" << oendl; | ||
62 | } | ||
63 | |||
64 | return 0; | ||
65 | |||
66 | } | ||
diff --git a/libopie2/examples/opiemm/osoundsystemdemo/osoundsystemdemo.pro b/libopie2/examples/opiemm/osoundsystemdemo/osoundsystemdemo.pro deleted file mode 100644 index 95924be..0000000 --- a/libopie2/examples/opiemm/osoundsystemdemo/osoundsystemdemo.pro +++ b/dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | TEMPLATE = app | ||
2 | CONFIG = qt warn_on | ||
3 | HEADERS = | ||
4 | SOURCES = osoundsystemdemo.cpp | ||
5 | INCLUDEPATH += $(OPIEDIR)/include | ||
6 | DEPENDPATH += $(OPIEDIR)/include | ||
7 | LIBS += -lopiecore2 -lopiemm2 | ||
8 | TARGET = osoundsystemdemo | ||
9 | MOC_DIR = moc | ||
10 | OBJECTS_DIR = obj | ||
11 | |||
12 | include( $(OPIEDIR)/include.pro ) | ||