aboutsummaryrefslogtreecommitdiff
path: root/source/nds
diff options
context:
space:
mode:
authorNebuleon Fumika2013-01-09 02:32:24 -0500
committerNebuleon Fumika2013-01-09 02:32:24 -0500
commit3585aa1c2a7af48728486d76a45efce7599b6ff6 (patch)
treeb72082d43a4baba335225f63be2ab2887918a063 /source/nds
parent8872841ad12815fc00cd331992da1daea4d44d22 (diff)
downloadsnesemu-3585aa1c2a7af48728486d76a45efce7599b6ff6.tar.gz
snesemu-3585aa1c2a7af48728486d76a45efce7599b6ff6.tar.bz2
snesemu-3585aa1c2a7af48728486d76a45efce7599b6ff6.zip
Increase the audio frequency to 48 kHz. Timer interrupt intervals and buffer sizes are also tested at 32 kHz and 44.1 kHz.
Diffstat (limited to 'source/nds')
-rw-r--r--source/nds/ds2sound.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/source/nds/ds2sound.h b/source/nds/ds2sound.h
index b901939..4bb715b 100644
--- a/source/nds/ds2sound.h
+++ b/source/nds/ds2sound.h
@@ -1,11 +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 */
-// Others don't work, or don't work well.
+#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 */
// In microseconds.
-#define INTERRUPT_TIME_4 2000 /* tested working */
-// Others don't work, or don't work well.
+#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 */
// The sampling rate for the sound, in Hz, for each value of
// Settings.SoundPlaybackRate.
@@ -18,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_4
-#define DS2_BUFFER_SIZE DS2_BUFFER_SIZE_4
-#define SND_SAMPLE_RATE SND_SAMPLE_RATE_4
-#define SNES9X_SRATE_ID 4
+#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