diff --git a/src/avp/psnd.c b/src/avp/psnd.c index 2744ab5..efdf0d8 100644 --- a/src/avp/psnd.c +++ b/src/avp/psnd.c @@ -113,8 +113,9 @@ void SoundSys_Management(void) if(ActiveSounds[i].soundIndex==SID_NOSOUND) continue; /* empty slot */ numActive++; - if(PlatSoundHasStopped(i)!=0 && !ActiveSounds[i].paused) + if(PlatSoundHasStopped(i) && !ActiveSounds[i].paused) { +printf("SoundSys_Management: %d\n", i); Sound_Stop(i); continue; } @@ -343,7 +344,6 @@ void Sound_Play(SOUNDINDEX soundNumber, char *format, ...) int reverb_off = 0; int soundStartPosition = 0; -printf("1 Play: %d\n", soundNumber); { extern int PlaySounds; if (!PlaySounds) return; @@ -351,17 +351,12 @@ printf("1 Play: %d\n", soundNumber); if(!SoundSwitchedOn) return; -printf("2 Play\n"); /* check soundIndex for bounds, whether it has been loaded, and number of instances */ if((soundNumber<0)||(soundNumber>=SID_MAXIMUM)) return; -printf("A Play: %s\n", GameSounds[soundNumber].wavName); if(!(GameSounds[soundNumber].loaded)) return; -printf("B Play\n"); if(!(GameSounds[soundNumber].activeInstances