diff options
author | Autechre | 2022-03-22 15:22:37 +0100 |
---|---|---|
committer | GitHub | 2022-03-22 15:22:37 +0100 |
commit | a279e2b216919d79777928bad01e3d92039ad0fb (patch) | |
tree | 652add684a4e5d7cda11381507618f57f4c292d8 /source/apu_blargg.c | |
parent | abd072aa370620112a88cc7b350c2dfb1b58185a (diff) | |
parent | d22597e9032ee8024b477af78000704ec072e49b (diff) | |
download | snes9x2005-a279e2b216919d79777928bad01e3d92039ad0fb.tar.gz snes9x2005-a279e2b216919d79777928bad01e3d92039ad0fb.tar.bz2 snes9x2005-a279e2b216919d79777928bad01e3d92039ad0fb.zip |
Merge pull request #95 from jdgleaver/audio-sample-pacing
Fix audio sample pacing
Diffstat (limited to 'source/apu_blargg.c')
-rw-r--r-- | source/apu_blargg.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |