mirror of https://github.com/snes9xgit/snes9x.git
Merge pull request #644 from AlexApps99/master
Improvements to mute when using turbo
This commit is contained in:
commit
4c89a52e63
10
gtk/po/es.po
10
gtk/po/es.po
|
@ -1296,12 +1296,14 @@ msgstr "Silenciar la salida de sonido"
|
||||||
msgid "Disables output of sound"
|
msgid "Disables output of sound"
|
||||||
msgstr "Desactivar la salida de sonido"
|
msgstr "Desactivar la salida de sonido"
|
||||||
|
|
||||||
#: src/snes9x.ui:4200
|
#: src/snes9x.ui:4206
|
||||||
msgid "Mute sound when using turbo"
|
#, fuzzy
|
||||||
|
msgid "Mute sound when using turbo or rewind"
|
||||||
msgstr "Silenciar el sonido cuando se esté en turbo"
|
msgstr "Silenciar el sonido cuando se esté en turbo"
|
||||||
|
|
||||||
#: src/snes9x.ui:4204
|
#: src/snes9x.ui:4210
|
||||||
msgid "Disables output of sound when using turbo"
|
#, fuzzy
|
||||||
|
msgid "Disables output of sound when using turbo or rewind"
|
||||||
msgstr "Deshabilitar la salida de sonido cuando se esté en turbo"
|
msgstr "Deshabilitar la salida de sonido cuando se esté en turbo"
|
||||||
|
|
||||||
#: src/snes9x.ui:4227
|
#: src/snes9x.ui:4227
|
||||||
|
|
|
@ -1277,14 +1277,14 @@ msgstr "Sourdine"
|
||||||
msgid "Disables output of sound"
|
msgid "Disables output of sound"
|
||||||
msgstr "Désactiver la sortie audio"
|
msgstr "Désactiver la sortie audio"
|
||||||
|
|
||||||
#: src/snes9x.ui:4200
|
#: src/snes9x.ui:4206
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Mute sound when using turbo"
|
msgid "Mute sound when using turbo or rewind"
|
||||||
msgstr "Sourdine"
|
msgstr "Sourdine"
|
||||||
|
|
||||||
#: src/snes9x.ui:4204
|
#: src/snes9x.ui:4210
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Disables output of sound when using turbo"
|
msgid "Disables output of sound when using turbo or rewind"
|
||||||
msgstr "Désactiver la sortie audio"
|
msgstr "Désactiver la sortie audio"
|
||||||
|
|
||||||
#: src/snes9x.ui:4227
|
#: src/snes9x.ui:4227
|
||||||
|
|
|
@ -1253,14 +1253,14 @@ msgstr "サウンドをミュートする"
|
||||||
msgid "Disables output of sound"
|
msgid "Disables output of sound"
|
||||||
msgstr "音声出力を無効にします"
|
msgstr "音声出力を無効にします"
|
||||||
|
|
||||||
#: src/snes9x.ui:4200
|
#: src/snes9x.ui:4206
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Mute sound when using turbo"
|
msgid "Mute sound when using turbo or rewind"
|
||||||
msgstr "サウンドをミュートする"
|
msgstr "サウンドをミュートする"
|
||||||
|
|
||||||
#: src/snes9x.ui:4204
|
#: src/snes9x.ui:4210
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Disables output of sound when using turbo"
|
msgid "Disables output of sound when using turbo or rewind"
|
||||||
msgstr "音声出力を無効にします"
|
msgstr "音声出力を無効にします"
|
||||||
|
|
||||||
#: src/snes9x.ui:4227
|
#: src/snes9x.ui:4227
|
||||||
|
|
|
@ -1305,14 +1305,14 @@ msgstr "Saída de áudio muda"
|
||||||
msgid "Disables output of sound"
|
msgid "Disables output of sound"
|
||||||
msgstr "Desativar saída de áudio."
|
msgstr "Desativar saída de áudio."
|
||||||
|
|
||||||
#: src/snes9x.ui:4200
|
#: src/snes9x.ui:4206
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Mute sound when using turbo"
|
msgid "Mute sound when using turbo or rewind"
|
||||||
msgstr "Saída de áudio muda"
|
msgstr "Saída de áudio muda"
|
||||||
|
|
||||||
#: src/snes9x.ui:4204
|
#: src/snes9x.ui:4210
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Disables output of sound when using turbo"
|
msgid "Disables output of sound when using turbo or rewind"
|
||||||
msgstr "Desativar saída de áudio."
|
msgstr "Desativar saída de áudio."
|
||||||
|
|
||||||
#: src/snes9x.ui:4227
|
#: src/snes9x.ui:4227
|
||||||
|
|
|
@ -1287,14 +1287,14 @@ msgstr "Отключить звук"
|
||||||
msgid "Disables output of sound"
|
msgid "Disables output of sound"
|
||||||
msgstr "Запрещает вывод звука"
|
msgstr "Запрещает вывод звука"
|
||||||
|
|
||||||
#: src/snes9x.ui:4200
|
#: src/snes9x.ui:4206
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Mute sound when using turbo"
|
msgid "Mute sound when using turbo or rewind"
|
||||||
msgstr "Отключить звук"
|
msgstr "Отключить звук"
|
||||||
|
|
||||||
#: src/snes9x.ui:4204
|
#: src/snes9x.ui:4210
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Disables output of sound when using turbo"
|
msgid "Disables output of sound when using turbo or rewind"
|
||||||
msgstr "Запрещает вывод звука"
|
msgstr "Запрещает вывод звука"
|
||||||
|
|
||||||
#: src/snes9x.ui:4227
|
#: src/snes9x.ui:4227
|
||||||
|
|
|
@ -1269,14 +1269,14 @@ msgstr "Priguši izvor zvuka"
|
||||||
msgid "Disables output of sound"
|
msgid "Disables output of sound"
|
||||||
msgstr "Isključuje izvor zvuka"
|
msgstr "Isključuje izvor zvuka"
|
||||||
|
|
||||||
#: src/snes9x.ui:4200
|
#: src/snes9x.ui:4206
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Mute sound when using turbo"
|
msgid "Mute sound when using turbo or rewind"
|
||||||
msgstr "Priguši izvor zvuka"
|
msgstr "Priguši izvor zvuka"
|
||||||
|
|
||||||
#: src/snes9x.ui:4204
|
#: src/snes9x.ui:4210
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Disables output of sound when using turbo"
|
msgid "Disables output of sound when using turbo or rewind"
|
||||||
msgstr "Isključuje izvor zvuka"
|
msgstr "Isključuje izvor zvuka"
|
||||||
|
|
||||||
#: src/snes9x.ui:4227
|
#: src/snes9x.ui:4227
|
||||||
|
|
|
@ -273,7 +273,6 @@ static gboolean S9xPauseFunc (gpointer data)
|
||||||
/* Clear joystick queues */
|
/* Clear joystick queues */
|
||||||
gui_config->flush_joysticks ();
|
gui_config->flush_joysticks ();
|
||||||
|
|
||||||
S9xSetSoundMute (false);
|
|
||||||
S9xSoundStart ();
|
S9xSoundStart ();
|
||||||
|
|
||||||
if (Settings.NetPlay && NetPlay.Connected)
|
if (Settings.NetPlay && NetPlay.Connected)
|
||||||
|
@ -314,7 +313,6 @@ gboolean S9xIdleFunc (gpointer data)
|
||||||
{
|
{
|
||||||
if (Settings.Paused && gui_config->rom_loaded)
|
if (Settings.Paused && gui_config->rom_loaded)
|
||||||
{
|
{
|
||||||
S9xSetSoundMute (gui_config->mute_sound);
|
|
||||||
S9xSoundStop ();
|
S9xSoundStop ();
|
||||||
|
|
||||||
gui_config->flush_joysticks ();
|
gui_config->flush_joysticks ();
|
||||||
|
@ -360,14 +358,14 @@ gboolean S9xIdleFunc (gpointer data)
|
||||||
static int muted_from_turbo = false;
|
static int muted_from_turbo = false;
|
||||||
static int mute_saved_state = false;
|
static int mute_saved_state = false;
|
||||||
|
|
||||||
if (Settings.TurboMode && !muted_from_turbo && gui_config->mute_sound_turbo)
|
if ((Settings.TurboMode || Settings.Rewinding) && !muted_from_turbo && gui_config->mute_sound_turbo)
|
||||||
{
|
{
|
||||||
muted_from_turbo = true;
|
muted_from_turbo = true;
|
||||||
mute_saved_state = Settings.Mute;
|
mute_saved_state = Settings.Mute;
|
||||||
S9xSetSoundMute (true);
|
S9xSetSoundMute (true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Settings.TurboMode && muted_from_turbo)
|
if (!(Settings.TurboMode || Settings.Rewinding) && muted_from_turbo)
|
||||||
{
|
{
|
||||||
muted_from_turbo = false;
|
muted_from_turbo = false;
|
||||||
Settings.Mute = mute_saved_state;
|
Settings.Mute = mute_saved_state;
|
||||||
|
|
|
@ -4203,11 +4203,11 @@
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCheckButton" id="mute_sound_turbo_check">
|
<object class="GtkCheckButton" id="mute_sound_turbo_check">
|
||||||
<property name="label" translatable="yes">Mute sound when using turbo</property>
|
<property name="label" translatable="yes">Mute sound when using turbo or rewind</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="receives_default">False</property>
|
<property name="receives_default">False</property>
|
||||||
<property name="tooltip_text" translatable="yes">Disables output of sound when using turbo</property>
|
<property name="tooltip_text" translatable="yes">Disables output of sound when using turbo or rewind</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<property name="draw_indicator">True</property>
|
<property name="draw_indicator">True</property>
|
||||||
</object>
|
</object>
|
||||||
|
|
Loading…
Reference in New Issue