mirror of https://github.com/snes9xgit/snes9x.git
More sanity checking.
This commit is contained in:
parent
3578139270
commit
651ec0bf7e
|
@ -699,6 +699,11 @@ Snes9xPreferences::move_settings_to_dialog (void)
|
|||
set_check ("mute_sound_check", config->mute_sound);
|
||||
set_check ("mute_sound_turbo_check", config->mute_sound_turbo);
|
||||
set_slider ("sound_input_rate", config->sound_input_rate);
|
||||
if (top_level->get_auto_input_rate () == 0)
|
||||
{
|
||||
config->auto_input_rate = 0;
|
||||
gtk_widget_set_sensitive (get_widget ("auto_input_rate"), FALSE);
|
||||
}
|
||||
set_check ("auto_input_rate", config->auto_input_rate);
|
||||
gtk_widget_set_sensitive (get_widget("sound_input_rate"),
|
||||
config->auto_input_rate ? FALSE : TRUE);
|
||||
|
|
|
@ -130,6 +130,11 @@ S9xPortSoundInit (void)
|
|||
if (gui_config->auto_input_rate)
|
||||
{
|
||||
Settings.SoundInputRate = top_level->get_auto_input_rate ();
|
||||
if (Settings.SoundInputRate == 0.0)
|
||||
{
|
||||
Settings.SoundInputRate = 31950;
|
||||
gui_config->auto_input_rate = 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue