diff --git a/BBGE/FmodOpenALBridge.cpp b/BBGE/FmodOpenALBridge.cpp index 57e5d4b..cc6d09d 100644 --- a/BBGE/FmodOpenALBridge.cpp +++ b/BBGE/FmodOpenALBridge.cpp @@ -701,7 +701,6 @@ public: FMOD_RESULT isPlaying(bool *isplaying); FMOD_RESULT setChannelGroup(ChannelGroup *channelgroup); FMOD_RESULT stop(); - FMOD_RESULT setPan(const float pan); FMOD_RESULT setCallback(FMOD_CHANNEL_CALLBACK callback); FMOD_RESULT getUserData(void **userdata); FMOD_RESULT setUserData(void *userdata); @@ -950,14 +949,6 @@ FMOD_RESULT OpenALChannel::setPriority(int _priority) return FMOD_OK; } -ALBRIDGE(Channel,setPan,(float volume),(volume)) -FMOD_RESULT OpenALChannel::setPan(const float pan) -{ - alSource3f(sid, AL_POSITION, pan, 0, 0); - SANITY_CHECK_OPENAL_CALL(); - return FMOD_OK; -} - ALBRIDGE(Channel,stop,(),()) FMOD_RESULT OpenALChannel::stop() { diff --git a/BBGE/FmodOpenALBridge.h b/BBGE/FmodOpenALBridge.h index 0b1f28e..942037d 100644 --- a/BBGE/FmodOpenALBridge.h +++ b/BBGE/FmodOpenALBridge.h @@ -173,7 +173,6 @@ namespace FMOD FMOD_RESULT setPriority(int priority); FMOD_RESULT stop(); FMOD_RESULT setPaused(bool paused); - FMOD_RESULT setPan(float pan); FMOD_RESULT setCallback(FMOD_CHANNEL_CALLBACK callback); FMOD_RESULT getUserData(void **userdata); FMOD_RESULT setUserData(void *userdata); diff --git a/BBGE/SoundManager.cpp b/BBGE/SoundManager.cpp index a3de5a2..0e189e0 100644 --- a/BBGE/SoundManager.cpp +++ b/BBGE/SoundManager.cpp @@ -1055,7 +1055,6 @@ bool SoundManager::playVoice(const std::string &name, SoundVoiceType svt, float checkError(); */ - voiceChannel->setPan(0); voiceChannel->setFrequency(1); voiceChannel->setCallback(NULL); voiceChannel->setUserData(NULL); @@ -1148,8 +1147,6 @@ void *SoundManager::playSfx(const PlaySfx &play) checkError(); } - //channel->setPan(play.pan); - float freq = play.freq; if (freq <= 0) freq = 1; @@ -1341,7 +1338,6 @@ bool SoundManager::playMusic(const std::string &name, SoundLoopType slt, SoundFa } musicChannel->setFrequency(1); // in case the channel was used by a pitch-shifted sound before - musicChannel->setPan(0); musicChannel->setCallback(NULL); musicChannel->setUserData(NULL); musicChannel->set3DMinMaxDistance(0.0f, 0.0f); // disable attenuation