From fa3041f9acfd171b62c0ab73cde8b9d0f0772a9c Mon Sep 17 00:00:00 2001 From: mickeyl Date: Mon, 24 Jan 2005 18:56:14 +0000 Subject: add isStereo to OMixerInterface to gather whether a given channel is a stereo or mono channel --- (limited to 'libopie2/examples/opiemm/osoundsystemdemo/osoundsystemdemo.cpp') 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; } -- cgit v0.9.0.2