diff options
author | Nebuleon Fumika | 2013-01-11 03:31:03 -0500 |
---|---|---|
committer | Nebuleon Fumika | 2013-01-11 03:31:03 -0500 |
commit | 0028091d0f98f92a709dd2caa951e61ae28e5e34 (patch) | |
tree | ea55b420fc5ac72ba18c87bdd401a656e5d3eadc /source/nds/ds2sound.h | |
parent | 3a1708474fa080a364c7ed55b98e196e6cfbbf09 (diff) | |
download | snesemu-0028091d0f98f92a709dd2caa951e61ae28e5e34.tar.gz snesemu-0028091d0f98f92a709dd2caa951e61ae28e5e34.tar.bz2 snesemu-0028091d0f98f92a709dd2caa951e61ae28e5e34.zip |
Fix the interrupts glitching sound. Put the sound back at 22050 Hz.
Diffstat (limited to 'source/nds/ds2sound.h')
-rw-r--r-- | source/nds/ds2sound.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/source/nds/ds2sound.h b/source/nds/ds2sound.h index 4bb715b..544a670 100644 --- a/source/nds/ds2sound.h +++ b/source/nds/ds2sound.h @@ -1,15 +1,15 @@ // The sound buffer sizes used on the DS2's side, for each value of // Settings.SoundPlaybackRate. #define DS2_BUFFER_SIZE_4 512 /* tested working */ -#define DS2_BUFFER_SIZE_5 1024 /* like the SNES! tested working */ -#define DS2_BUFFER_SIZE_6 1024 /* tested working */ -#define DS2_BUFFER_SIZE_7 1024 /* tested working */ +#define DS2_BUFFER_SIZE_5 1024 /* like the SNES! tested working, but slow */ +#define DS2_BUFFER_SIZE_6 1024 /* tested working, slow because of upsampling */ +#define DS2_BUFFER_SIZE_7 1024 /* tested working, slow because of upsampling */ // In microseconds. #define INTERRUPT_TIME_4 4000 /* tested working */ -#define INTERRUPT_TIME_5 5000 /* like the SNES! underflows at 4000 */ -#define INTERRUPT_TIME_6 4000 /* tested working */ -#define INTERRUPT_TIME_7 4000 /* tested working */ +#define INTERRUPT_TIME_5 8000 /* like the SNES! tested working, but slow */ +#define INTERRUPT_TIME_6 4000 /* tested working, slow because of upsampling */ +#define INTERRUPT_TIME_7 4000 /* tested working, slow because of upsampling */ // The sampling rate for the sound, in Hz, for each value of // Settings.SoundPlaybackRate. @@ -22,7 +22,7 @@ #define SND_SAMPLE_RATE_7 48000 // Settings in use. The number should match in all three settings. -#define INTERRUPT_TIME INTERRUPT_TIME_7 -#define DS2_BUFFER_SIZE DS2_BUFFER_SIZE_7 -#define SND_SAMPLE_RATE SND_SAMPLE_RATE_7 -#define SNES9X_SRATE_ID 7 +#define INTERRUPT_TIME INTERRUPT_TIME_4 +#define DS2_BUFFER_SIZE DS2_BUFFER_SIZE_4 +#define SND_SAMPLE_RATE SND_SAMPLE_RATE_4 +#define SNES9X_SRATE_ID 4 |