blob: 544a6705be2f3c48193107a3a424e9bea65669fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// 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, 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 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.
#define SND_SAMPLE_RATE_1 8000
#define SND_SAMPLE_RATE_2 11025
#define SND_SAMPLE_RATE_3 16000
#define SND_SAMPLE_RATE_4 22050
#define SND_SAMPLE_RATE_5 32000
#define SND_SAMPLE_RATE_6 44100
#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
|