From e36e336192603850229d0fd7e5cd5d8ac9189f6f Mon Sep 17 00:00:00 2001 From: jdgleaver Date: Tue, 22 Mar 2022 12:56:55 +0000 Subject: Fix audio sample pacing --- source/apu_blargg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/apu_blargg.c') diff --git a/source/apu_blargg.c b/source/apu_blargg.c index 20b8b50..cfa7aae 100644 --- a/source/apu_blargg.c +++ b/source/apu_blargg.c @@ -2849,7 +2849,7 @@ void spc_copy_state( uint8_t ** io, dsp_copy_func_t copy ) APU ***********************************************************************************/ -#define APU_DEFAULT_INPUT_RATE 32000 +#define APU_DEFAULT_INPUT_RATE 32040 #define APU_MINIMUM_SAMPLE_COUNT (512*8) #define APU_MINIMUM_SAMPLE_BLOCK (128*8) #define APU_NUMERATOR_NTSC 15664 @@ -3177,8 +3177,8 @@ bool S9xInitSound (int32_t buffer_ms, int32_t lag_ms) lag_ms : allowable time-lag given in millisecond */ int32_t sample_count, lag_sample_count; - sample_count = buffer_ms * 32000 / 1000; - lag_sample_count = lag_ms * 32000 / 1000; + sample_count = buffer_ms * 32040 / 1000; + lag_sample_count = lag_ms * 32040 / 1000; lag_master = lag_sample_count; -- cgit v1.2.3