author | mickeyl <mickeyl> | 2003-06-15 12:47:05 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-06-15 12:47:05 (UTC) |
commit | 24d20c74b8e02ad7b7575ab8f577880f98e43655 (patch) (unidiff) | |
tree | f10e70dc26d89012e70a7763bfea78ac14971650 /libopie2/examples | |
parent | 6b682070b6d83f3537dd9fa5aee715ab142a04e6 (diff) | |
download | opie-24d20c74b8e02ad7b7575ab8f577880f98e43655.zip opie-24d20c74b8e02ad7b7575ab8f577880f98e43655.tar.gz opie-24d20c74b8e02ad7b7575ab8f577880f98e43655.tar.bz2 |
just a check-in before i lose that because of my fscking harddrive...
this is work-in-progress...
-rw-r--r-- | libopie2/examples/config.in | 6 | ||||
-rw-r--r-- | libopie2/examples/examples.pro | 2 | ||||
-rw-r--r-- | libopie2/examples/opiemm/.cvsignore | 6 | ||||
-rw-r--r-- | libopie2/examples/opiemm/opiemm.pro | 3 | ||||
-rw-r--r-- | libopie2/examples/opiemm/osoundsystemdemo/.cvsignore | 6 | ||||
-rw-r--r-- | libopie2/examples/opiemm/osoundsystemdemo/osoundsystemdemo.cpp | 32 | ||||
-rw-r--r-- | libopie2/examples/opiemm/osoundsystemdemo/osoundsystemdemo.pro | 12 |
7 files changed, 63 insertions, 4 deletions
diff --git a/libopie2/examples/config.in b/libopie2/examples/config.in index d18e479..478a822 100644 --- a/libopie2/examples/config.in +++ b/libopie2/examples/config.in | |||
@@ -3,4 +3,4 @@ | |||
3 | default "n" | 3 | default "n" |
4 | depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && LIBOPIE2NET && LIBOPIE2UI && LIBOPIE2PIM && LIBOPIE2UI | 4 | depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && LIBOPIE2NET && LIBOPIE2UI && LIBOPIE2PIM && LIBOPIE2UI && LIBOPIE2MM |
5 | comment "the examples need a libqpe, libopie2core, libopie2db, libopie2net, libopie2pim and libopie2ui" | 5 | comment "the examples need a libqpe, libopie2core, libopie2db, libopie2net, libopie2pim, libopie2ui and libopie2mm" |
6 | depends !(( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && LIBOPIE2NET && LIBOPIE2UI && LIBOPIE2PIM && LIBOPIE2UI) | 6 | depends !(( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && LIBOPIE2NET && LIBOPIE2UI && LIBOPIE2PIM && LIBOPIE2UI && LIBOPIE2MM) |
diff --git a/libopie2/examples/examples.pro b/libopie2/examples/examples.pro index 2ae7eb7..8add40d 100644 --- a/libopie2/examples/examples.pro +++ b/libopie2/examples/examples.pro | |||
@@ -1,3 +1,3 @@ | |||
1 | TEMPLATE = subdirs | 1 | TEMPLATE = subdirs |
2 | unix:SUBDIRS = opieui opienet opiecore | 2 | unix:SUBDIRS = opieui opienet opiecore opiemm |
3 | 3 | ||
diff --git a/libopie2/examples/opiemm/.cvsignore b/libopie2/examples/opiemm/.cvsignore new file mode 100644 index 0000000..8f7300c --- a/dev/null +++ b/libopie2/examples/opiemm/.cvsignore | |||
@@ -0,0 +1,6 @@ | |||
1 | Makefile* | ||
2 | moc* | ||
3 | *moc | ||
4 | *.o | ||
5 | ~* | ||
6 | |||
diff --git a/libopie2/examples/opiemm/opiemm.pro b/libopie2/examples/opiemm/opiemm.pro new file mode 100644 index 0000000..0522ebe --- a/dev/null +++ b/libopie2/examples/opiemm/opiemm.pro | |||
@@ -0,0 +1,3 @@ | |||
1 | TEMPLATE = subdirs | ||
2 | SUBDIRS = osoundsystemdemo | ||
3 | |||
diff --git a/libopie2/examples/opiemm/osoundsystemdemo/.cvsignore b/libopie2/examples/opiemm/osoundsystemdemo/.cvsignore new file mode 100644 index 0000000..8f7300c --- a/dev/null +++ b/libopie2/examples/opiemm/osoundsystemdemo/.cvsignore | |||
@@ -0,0 +1,6 @@ | |||
1 | Makefile* | ||
2 | moc* | ||
3 | *moc | ||
4 | *.o | ||
5 | ~* | ||
6 | |||
diff --git a/libopie2/examples/opiemm/osoundsystemdemo/osoundsystemdemo.cpp b/libopie2/examples/opiemm/osoundsystemdemo/osoundsystemdemo.cpp new file mode 100644 index 0000000..79bf327 --- a/dev/null +++ b/libopie2/examples/opiemm/osoundsystemdemo/osoundsystemdemo.cpp | |||
@@ -0,0 +1,32 @@ | |||
1 | #include <opie2/osoundsystem.h> | ||
2 | |||
3 | int main( int argc, char** argv ) | ||
4 | { | ||
5 | qDebug( "OPIE Sound System Demo" ); | ||
6 | |||
7 | OSoundSystem* sound = OSoundSystem::instance(); | ||
8 | |||
9 | OSoundSystem::CardIterator it = sound->iterator(); | ||
10 | /* | ||
11 | while ( it.current() ) | ||
12 | { | ||
13 | qDebug( "DEMO: OSoundSystem contains Interface '%s'", (const char*) it.current()->name() ); | ||
14 | ++it; | ||
15 | } | ||
16 | |||
17 | */ | ||
18 | OSoundCard* card = it.current(); | ||
19 | |||
20 | OMixerInterface* mixer = card->mixer(); | ||
21 | |||
22 | QStringList channels = mixer->allChannels(); | ||
23 | |||
24 | for ( QStringList::Iterator it = channels.begin(); it != channels.end(); ++it ) | ||
25 | { | ||
26 | qDebug( "OSSDEMO: Mixer has channel %s", (const char*) *it ); | ||
27 | qDebug( "OSSDEMO: +--- volume %d (left) | %d (right)", mixer->volume( *it ) & 0xff, mixer->volume( *it ) >> 8 ); | ||
28 | } | ||
29 | |||
30 | return 0; | ||
31 | |||
32 | } | ||
diff --git a/libopie2/examples/opiemm/osoundsystemdemo/osoundsystemdemo.pro b/libopie2/examples/opiemm/osoundsystemdemo/osoundsystemdemo.pro new file mode 100644 index 0000000..ba66165 --- a/dev/null +++ b/libopie2/examples/opiemm/osoundsystemdemo/osoundsystemdemo.pro | |||
@@ -0,0 +1,12 @@ | |||
1 | TEMPLATE = app | ||
2 | CONFIG = qt warn_on debug | ||
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 ) | ||