From 53330554dbf7a201099a7057ae61f43df5e79809 Mon Sep 17 00:00:00 2001 From: jdah <20308439+jdah@users.noreply.github.com> Date: Wed, 28 Apr 2021 17:41:50 +0200 Subject: [PATCH] Reduce sampling ratee --- .gitignore | 1 + src/sound.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 3345747..3783f90 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ bin/ *.iso +*.img *.icloud .DS_Store diff --git a/src/sound.c b/src/sound.c index 57d12e8..1c62de6 100644 --- a/src/sound.c +++ b/src/sound.c @@ -147,7 +147,7 @@ static const f64 NOTES[NUM_OCTAVES * OCTAVE_SIZE] = { #define DSP_VOLUME 0x22 #define DSP_IRQ 0x80 -#define SAMPLE_RATE 21500 +#define SAMPLE_RATE 22050 #define BUFFER_MS 40 #define BUFFER_SIZE ((size_t) (SAMPLE_RATE * (BUFFER_MS / 1000.0)))