summaryrefslogtreecommitdiff
path: root/multimedia/kdemultimedia3/patches/patch-as
blob: 9eed58ef63b63527e5f397f446636ddd561e7aca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-as,v 1.1 2005/03/19 01:03:38 markd Exp $

--- kmix/mixer_sun.cpp.orig	2004-11-29 06:06:35.000000000 +1300
+++ kmix/mixer_sun.cpp
@@ -422,7 +422,7 @@ bool Mixer_SUN::isRecsrcHW( int devnum )
 //======================================================================
 void Mixer_SUN::VolumeToGainBalance( Volume& volume, uint_t& gain, uchar_t& balance )
 {
-   if ( ( volume.channels() == 1 ) ||
+   if ( ( volume.count() == 1 ) ||
         ( volume[Volume::LEFT] == volume[Volume::RIGHT] ) )
    {
       gain = volume[Volume::LEFT];
@@ -454,7 +454,7 @@ void Mixer_SUN::VolumeToGainBalance( Vol
 //======================================================================
 void Mixer_SUN::GainBalanceToVolume( uint_t& gain, uchar_t& balance, Volume& volume )
 {
-   if ( volume.channels() == 1 )
+   if ( volume.count() == 1 )
    {
       volume.setVolume( Volume::LEFT, gain );
    }