author | mickeyl <mickeyl> | 2005-01-24 18:56:14 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-01-24 18:56:14 (UTC) |
commit | fa3041f9acfd171b62c0ab73cde8b9d0f0772a9c (patch) (side-by-side diff) | |
tree | c2ba9f2aaa744abaf4ac698eeeb27311dd81a50b /libopie2/examples/opiemm | |
parent | 176a421ade3f5baf07be9327cbdbfedea41fdd3c (diff) | |
download | opie-fa3041f9acfd171b62c0ab73cde8b9d0f0772a9c.zip opie-fa3041f9acfd171b62c0ab73cde8b9d0f0772a9c.tar.gz opie-fa3041f9acfd171b62c0ab73cde8b9d0f0772a9c.tar.bz2 |
add isStereo to OMixerInterface to gather whether a given channel is a stereo or mono channel
-rw-r--r-- | libopie2/examples/opiemm/osoundsystemdemo/osoundsystemdemo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libopie2/examples/opiemm/osoundsystemdemo/osoundsystemdemo.cpp b/libopie2/examples/opiemm/osoundsystemdemo/osoundsystemdemo.cpp index b522441..f74a1b9 100644 --- a/libopie2/examples/opiemm/osoundsystemdemo/osoundsystemdemo.cpp +++ b/libopie2/examples/opiemm/osoundsystemdemo/osoundsystemdemo.cpp @@ -55,7 +55,8 @@ int main( int argc, char** argv ) for ( QStringList::Iterator it = channels.begin(); it != channels.end(); ++it ) { - odebug << "OSSDEMO: Mixer has channel " << *it << "" << oendl; + bool stereo = mixer->isStereo( *it ); + odebug << "OSSDEMO: Mixer has channel " << *it << ( stereo ? "[stereo]" : "[mono]" ) << oendl; odebug << "OSSDEMO: +--- volume " << ( mixer->volume( *it ) & 0xff ) << " (left) | " << ( mixer->volume( *it ) >> 8 ) << " (right)" << oendl; } |