diff --git a/src/sound/arts_audio.cpp b/src/sound/arts_audio.cpp index 9e7a56837..5c62777f4 100644 --- a/src/sound/arts_audio.cpp +++ b/src/sound/arts_audio.cpp @@ -109,10 +109,10 @@ global int InitArtsSound(int freq, int size) } arts_stream_set(stream, ARTS_P_PACKET_SETTINGS, frags); - IfDebug( +#ifdef DEBUG frags = arts_stream_get(stream, ARTS_P_BUFFER_SIZE); DebugLevel0Fn("frequency %d, buffer size %d\n" _C_ freq _C_ frags); - ); +#endif SoundFildes = 0; return 0; } diff --git a/src/sound/ogg.cpp b/src/sound/ogg.cpp index a6c6fcacb..fa2af471c 100644 --- a/src/sound/ogg.cpp +++ b/src/sound/ogg.cpp @@ -412,7 +412,9 @@ global Sample* LoadOgg(const char* name,int flags) ov_clear(vf); DebugLevel0Fn(" %d\n" _C_ sample->Length); - IfDebug( AllocatedSoundMemory += sample->Length; ); +#ifdef DEBUG + AllocatedSoundMemory += sample->Length; +#endif } return sample;