From 9f77836ceefe2735e63efc3ee665859eae338090 Mon Sep 17 00:00:00 2001 From: Bastiaan Zapf Date: Fri, 6 May 2005 22:26:19 +0000 Subject: [PATCH] comments deleted ;) SVN-Revision: 2424 --- src/audio/sound_manager.cpp | 37 ------------------------------------- src/audio/sound_manager.h | 7 ------- 2 files changed, 44 deletions(-) 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