diff options
Diffstat (limited to 'kmix/mixer_oss.cpp')
-rw-r--r-- | kmix/mixer_oss.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kmix/mixer_oss.cpp b/kmix/mixer_oss.cpp index 5b51db16..7fcfb38e 100644 --- a/kmix/mixer_oss.cpp +++ b/kmix/mixer_oss.cpp @@ -108,31 +108,31 @@ int Mixer_OSS::open() } } - int devtqmask, rectqmask, i_recsrc, stereodevs; + int devmask, recmask, i_recsrc, stereodevs; // Mixer is open. Now define properties - if (ioctl(m_fd, SOUND_MIXER_READ_DEVMASK, &devtqmask) == -1) + if (ioctl(m_fd, SOUND_MIXER_READ_DEVMASK, &devmask) == -1) return Mixer::ERR_READ; - if (ioctl(m_fd, SOUND_MIXER_READ_RECMASK, &rectqmask) == -1) + if (ioctl(m_fd, SOUND_MIXER_READ_RECMASK, &recmask) == -1) return Mixer::ERR_READ; if (ioctl(m_fd, SOUND_MIXER_READ_RECSRC, &i_recsrc) == -1) return Mixer::ERR_READ; if (ioctl(m_fd, SOUND_MIXER_READ_STEREODEVS, &stereodevs) == -1) return Mixer::ERR_READ; - if (!devtqmask) + if (!devmask) return Mixer::ERR_NODEV; int maxVolume =100; if( m_mixDevices.isEmpty() ) { int idx = 0; - while( devtqmask && idx < MAX_MIXDEVS ) + while( devmask && idx < MAX_MIXDEVS ) { - if( devtqmask & ( 1 << idx ) ) // device active? + if( devmask & ( 1 << idx ) ) // device active? { Volume vol( stereodevs & ( 1 << idx ) ? 2 : 1, maxVolume); readVolumeFromHW( idx, vol ); MixDevice* md = - new MixDevice( idx, vol, rectqmask & ( 1 << idx ), true, + new MixDevice( idx, vol, recmask & ( 1 << idx ), true, MixerDevNames[idx], MixerChannelTypes[idx]); md->setRecSource( isRecsrcHW( idx ) ); @@ -268,7 +268,7 @@ bool Mixer_OSS::setRecsrcHW( int devnum, bool on ) } // PORTING: Hint: Do not forget to set i_recsrc to the new valid - // record source tqmask. + // record source mask. return i_recsrc == oldrecsrc; } @@ -280,7 +280,7 @@ bool Mixer_OSS::isRecsrcHW( int devnum ) if (ioctl(m_fd, SOUND_MIXER_READ_RECSRC, &recsrcMask) == -1) errormsg(Mixer::ERR_READ); else { - // test if device bit is set in record bit tqmask + // test if device bit is set in record bit mask isRecsrc = ( (recsrcMask & ( 1<<devnum)) != 0 ); } return isRecsrc; |