Browse Source

Fixed set_balance_on_channel

Josh Yelon 19 years ago
parent
commit
e07a92eee2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      panda/src/audiotraits/fmodAudioSound.cxx

+ 2 - 2
panda/src/audiotraits/fmodAudioSound.cxx

@@ -975,12 +975,12 @@ set_speaker_mix_or_balance_on_channel() {
     //FMOD Returns an error is you try and pan a sound in 3D Audio.
     //FMOD Returns an error is you try and pan a sound in 3D Audio.
     //Which makes sense.
     //Which makes sense.
     //It is nothing serious,  but might as well avoid it while we can.
     //It is nothing serious,  but might as well avoid it while we can.
-    if ( soundMode & FMOD_3D ) {
+    if (( soundMode & FMOD_3D ) == 0) {
       result = _channel->setPan( _balance );
       result = _channel->setPan( _balance );
       fmod_audio_errcheck(result);
       fmod_audio_errcheck(result);
     }
     }
   } else {
   } else {
-    if ( soundMode & FMOD_3D ) {
+    if (( soundMode & FMOD_3D ) == 0) {
       result = _channel->setSpeakerMix( _frontleft, _frontright, _center, _sub, _backleft, _backright, _sideleft, _sideright );
       result = _channel->setSpeakerMix( _frontleft, _frontright, _center, _sub, _backleft, _backright, _sideleft, _sideright );
       fmod_audio_errcheck(result);
       fmod_audio_errcheck(result);
     }
     }