uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit b25e3e599d15af4330ab14e895a372c95253c093
parent a07f5341bf71e40d65e36d037bb427d0ec1cd983
Author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
Date:   Wed, 19 May 2021 07:30:39 +0000

calculate NOTE_PERIOD based on sampling rate (thanks asie)

Diffstat:
Msrc/devices/apu.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/devices/apu.c b/src/devices/apu.c @@ -13,7 +13,7 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE. */ -#define NOTE_PERIOD 0x10000 +#define NOTE_PERIOD (SAMPLE_FREQUENCY * 0x4000 / 11025) #define ADSR_STEP (SAMPLE_FREQUENCY / 0xf) /* clang-format off */