mirror of
https://github.com/libretro/snes9x.git
synced 2024-11-23 08:19:46 +00:00
Adjust default input rate, too.
This commit is contained in:
parent
aa867abcd3
commit
9c120fe3bf
@ -15,7 +15,7 @@
|
||||
|
||||
#include "bapu/snes/snes.hpp"
|
||||
|
||||
static const int APU_DEFAULT_INPUT_RATE = 31950; // ~59.94Hz
|
||||
static const int APU_DEFAULT_INPUT_RATE = 31920; // ~59.94Hz
|
||||
static const int APU_SAMPLE_BLOCK = 48;
|
||||
static const int APU_NUMERATOR_NTSC = 5632;
|
||||
static const int APU_DENOMINATOR_NTSC = 118125;
|
||||
|
@ -133,7 +133,7 @@ S9xPortSoundInit ()
|
||||
Settings.SoundInputRate = top_level->get_auto_input_rate ();
|
||||
if (Settings.SoundInputRate == 0.0)
|
||||
{
|
||||
Settings.SoundInputRate = 31950;
|
||||
Settings.SoundInputRate = 31920;
|
||||
gui_config->auto_input_rate = 0;
|
||||
}
|
||||
}
|
||||
|
@ -239,7 +239,7 @@ void S9xLoadConfigFiles (char **argv, int argc)
|
||||
Settings.Stereo = conf.GetBool("Sound::Stereo", true);
|
||||
Settings.ReverseStereo = conf.GetBool("Sound::ReverseStereo", false);
|
||||
Settings.SoundPlaybackRate = conf.GetUInt("Sound::Rate", 48000);
|
||||
Settings.SoundInputRate = conf.GetUInt("Sound::InputRate", 31950);
|
||||
Settings.SoundInputRate = conf.GetUInt("Sound::InputRate", 31920);
|
||||
Settings.Mute = conf.GetBool("Sound::Mute", false);
|
||||
Settings.DynamicRateControl = conf.GetBool("Sound::DynamicRateControl", false);
|
||||
Settings.DynamicRateLimit = conf.GetInt ("Sound::DynamicRateLimit", 5);
|
||||
|
@ -1485,7 +1485,7 @@ int main (int argc, char **argv)
|
||||
Settings.SixteenBitSound = TRUE;
|
||||
Settings.Stereo = TRUE;
|
||||
Settings.SoundPlaybackRate = 48000;
|
||||
Settings.SoundInputRate = 31950;
|
||||
Settings.SoundInputRate = 31920;
|
||||
Settings.SupportHiRes = TRUE;
|
||||
Settings.Transparency = TRUE;
|
||||
Settings.AutoDisplayMessages = TRUE;
|
||||
|
@ -814,7 +814,7 @@ void WinRegisterConfigItems()
|
||||
#define CATEGORY "Sound"
|
||||
AddIntC("Sync", Settings.SoundSync, 1, "1 to sync emulation to sound output, 0 to disable.");
|
||||
AddUIntC("Rate", Settings.SoundPlaybackRate, 48000, "sound playback quality, in Hz");
|
||||
AddUIntC("InputRate", Settings.SoundInputRate, 31950, "for each 'Input rate' samples generated by the SNES, 'Playback rate' samples will produced. If you experience crackling you can try to lower this setting.");
|
||||
AddUIntC("InputRate", Settings.SoundInputRate, 31920, "for each 'Input rate' samples generated by the SNES, 'Playback rate' samples will produced. If you experience crackling you can try to lower this setting.");
|
||||
AddBoolC("Mute", GUI.Mute, false, "true to mute sound output (does not disable the sound CPU)");
|
||||
AddBool("DynamicRateControl", Settings.DynamicRateControl, false);
|
||||
AddBool("AutomaticInputRate", GUI.AutomaticInputRate, true);
|
||||
|
@ -41,7 +41,7 @@ bool ReInitSound()
|
||||
else
|
||||
{
|
||||
GUI.AutomaticInputRate = false;
|
||||
Settings.SoundInputRate = 31950;
|
||||
Settings.SoundInputRate = 31920;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user