mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-30 14:34:22 +01:00
change audio playback to 48khz. this should fix the tinny sound problem.
This commit is contained in:
parent
af60660923
commit
860d77a094
@ -97,7 +97,7 @@ InitAudio ()
|
|||||||
{
|
{
|
||||||
#ifdef NO_SOUND
|
#ifdef NO_SOUND
|
||||||
AUDIO_Init (NULL);
|
AUDIO_Init (NULL);
|
||||||
AUDIO_SetDSPSampleRate(AI_SAMPLERATE_32KHZ);
|
AUDIO_SetDSPSampleRate(AI_SAMPLERATE_48KHZ);
|
||||||
AUDIO_RegisterDMACallback(GCMixSamples);
|
AUDIO_RegisterDMACallback(GCMixSamples);
|
||||||
#else
|
#else
|
||||||
ASND_Init();
|
ASND_Init();
|
||||||
@ -122,7 +122,6 @@ SwitchAudioMode(int mode)
|
|||||||
AUDIO_StopDMA();
|
AUDIO_StopDMA();
|
||||||
AUDIO_RegisterDMACallback(NULL);
|
AUDIO_RegisterDMACallback(NULL);
|
||||||
DSP_Halt();
|
DSP_Halt();
|
||||||
AUDIO_SetDSPSampleRate(AI_SAMPLERATE_32KHZ);
|
|
||||||
AUDIO_RegisterDMACallback(GCMixSamples);
|
AUDIO_RegisterDMACallback(GCMixSamples);
|
||||||
#endif
|
#endif
|
||||||
memset(soundbuffer[0],0,AUDIOBUFFER);
|
memset(soundbuffer[0],0,AUDIOBUFFER);
|
||||||
|
@ -474,15 +474,15 @@ DefaultSettings ()
|
|||||||
Settings.DontSaveOopsSnapshot = true;
|
Settings.DontSaveOopsSnapshot = true;
|
||||||
Settings.ApplyCheats = true;
|
Settings.ApplyCheats = true;
|
||||||
|
|
||||||
Settings.BlockInvalidVRAMAccess = false;
|
|
||||||
Settings.HDMATimingHack = 100;
|
Settings.HDMATimingHack = 100;
|
||||||
|
Settings.BlockInvalidVRAMAccessMaster = true;
|
||||||
|
|
||||||
// Sound defaults. On Wii this is 32Khz/16bit/Stereo
|
// Sound defaults. On Wii this is 32Khz/16bit/Stereo
|
||||||
Settings.SoundSync = true;
|
Settings.SoundSync = true;
|
||||||
Settings.SixteenBitSound = true;
|
Settings.SixteenBitSound = true;
|
||||||
Settings.Stereo = true;
|
Settings.Stereo = true;
|
||||||
Settings.ReverseStereo = true;
|
Settings.ReverseStereo = true;
|
||||||
Settings.SoundPlaybackRate = 32040;
|
Settings.SoundPlaybackRate = 48000;
|
||||||
Settings.SoundInputRate = 32000;
|
Settings.SoundInputRate = 32000;
|
||||||
Settings.DynamicRateControl = true;
|
Settings.DynamicRateControl = true;
|
||||||
|
|
||||||
|
@ -378,7 +378,7 @@ void InitializeSnes9x() {
|
|||||||
if (!S9xInitAPU ())
|
if (!S9xInitAPU ())
|
||||||
ExitApp();
|
ExitApp();
|
||||||
|
|
||||||
S9xInitSound (64, 0); // Initialise Sound System
|
S9xInitSound (32, 0); // Initialise Sound System
|
||||||
|
|
||||||
// Initialise Graphics
|
// Initialise Graphics
|
||||||
setGFX ();
|
setGFX ();
|
||||||
|
Loading…
Reference in New Issue
Block a user