diff options
author | quou <quou@disroot.org> | 2023-05-07 18:37:10 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2023-05-07 18:37:10 +1000 |
commit | 97e79598aa3fbbf7e7b69894964ccb232dfc0347 (patch) | |
tree | 4b176682b581148fab1e05f0fb8378c76f55800b /sound.c | |
parent | 955f6ae56cdd3b20eabb44e7c9b931bdb17c2b3e (diff) |
Add more sound effects.
Diffstat (limited to 'sound.c')
-rw-r--r-- | sound.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -86,8 +86,7 @@ void sound_mix(unsigned char* stream, int len) { for (i = 0; i < len; i++) { /* stream[i] = sys.t % 50;*/ - stream[i] = 0; - stream[i] = f(sys.t) / 2; + stream[i] = f(sys.t) / 5; for (j = sys.beep_count - 1; j >= 0; j--) { beep = &sys.beeps[j]; stream[i] |= (sys.t % beep->pitch) * 5; |