diff --git a/common/main/digi.h b/common/main/digi.h index 3c272e55e..75a793276 100644 --- a/common/main/digi.h +++ b/common/main/digi.h @@ -93,7 +93,6 @@ extern void digi_end_sound( int channel ); extern void digi_set_channel_pan( int channel, int pan ); extern void digi_set_channel_volume( int channel, int volume ); extern int digi_is_channel_playing(int channel); -extern void digi_debug(); extern void digi_play_sample_looping( int soundno, fix max_volume,int loop_start, int loop_end ); extern void digi_change_looping_volume( fix volume ); diff --git a/similar/arch/sdl/digi.cpp b/similar/arch/sdl/digi.cpp index 2cfc8f6ec..761182071 100644 --- a/similar/arch/sdl/digi.cpp +++ b/similar/arch/sdl/digi.cpp @@ -177,9 +177,6 @@ void digi_select_system(int n) { } /* Common digi functions */ -#ifndef NDEBUG -static int digi_initialised = 0; -#endif #if defined(DXX_BUILD_DESCENT_I) int digi_sample_rate = SAMPLE_RATE_11K; #endif @@ -213,21 +210,6 @@ int digi_is_channel_playing(int channel) { return fptr->is_channel_playing(chan void digi_stop_all_channels() { fptr->stop_all_channels(); } void digi_set_digi_volume(int dvolume) { fptr->set_digi_volume(dvolume); } -#ifndef NDEBUG -void digi_debug() -{ - int n_voices = 0; - - if (!digi_initialised) return; - - for (int i = 0; i < digi_max_channels; i++) - { - if (digi_is_channel_playing(i)) - n_voices++; - } -} -#endif - #ifdef _WIN32 // Windows native-MIDI stuff. int digi_win32_midi_song_playing=0;