From: Bastiaan Zapf Date: Fri, 6 May 2005 22:26:19 +0000 (+0000) Subject: comments deleted ;) X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9f77836ceefe2735e63efc3ee665859eae338090;p=supertux.git comments deleted ;) SVN-Revision: 2424 --- diff --git a/src/audio/sound_manager.cpp b/src/audio/sound_manager.cpp index d0c547e0f..e463acca3 100644 --- a/src/audio/sound_manager.cpp +++ b/src/audio/sound_manager.cpp @@ -100,43 +100,6 @@ SoundManager::play_sound(const std::string& sound, const Vector& pos, Mix_SetPanning(chan, 24, 230); } -/* - -ok, i was stupid. We won't need this now. - -// Register a sound effect function - basti_ - -void -SoundManager::register_effect(int channel,Mix_EffectFunc_t f, - Mix_EffectDone_t d,void * arg) { - - if(!audio_device || !m_sound_enabled) - return; - Mix_RegisterEffect(channel,f,d,arg); -} - -// Adjust the Volume of a channel "on line". Needs sizeof(float) static data. - -void -SoundManager::volume_adjust(int chan, void *stream, int len, void *udata) { - - typedef signed short int atype; - - ((float *)udata)[1]=((float *)udata)[1]*0.95+ - (((float *)udata)[0]- - ((float *)udata)[1])*0.05; // decay towards [0] - declick - float vol=((float*)udata)[1]; - - for (int i=0;i