diff options
Diffstat (limited to 'sound.c')
-rw-r--r-- | sound.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -63,6 +63,7 @@ Song_Func get_current_song_f() { } void play_beep(int pitch, int length) { +#if !no_sound Beep* beep; #if DEBUG @@ -75,6 +76,7 @@ void play_beep(int pitch, int length) { beep = &sys.beeps[sys.beep_count++]; beep->pitch = pitch; beep->length = length; +#endif } void sound_mix(unsigned char* stream, int len) { @@ -85,7 +87,6 @@ void sound_mix(unsigned char* stream, int len) { f = get_current_song_f(); for (i = 0; i < len; i++) { -/* stream[i] = sys.t % 50;*/ stream[i] = f(sys.t) / 5; for (j = sys.beep_count - 1; j >= 0; j--) { beep = &sys.beeps[j]; |