aboutsummaryrefslogtreecommitdiff
path: root/sound.c
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2023-05-07 18:37:10 +1000
committerquou <quou@disroot.org>2023-05-07 18:37:10 +1000
commit97e79598aa3fbbf7e7b69894964ccb232dfc0347 (patch)
tree4b176682b581148fab1e05f0fb8378c76f55800b /sound.c
parent955f6ae56cdd3b20eabb44e7c9b931bdb17c2b3e (diff)
Add more sound effects.
Diffstat (limited to 'sound.c')
-rw-r--r--sound.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound.c b/sound.c
index 611bca9..798e8c2 100644
--- a/sound.c
+++ b/sound.c
@@ -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;