From 42f9b817d2720d29c5e92783fe6216d9a080154a Mon Sep 17 00:00:00 2001 From: alyosha-tas Date: Wed, 11 Sep 2019 09:45:48 -0400 Subject: [PATCH] GBHawk3x: Add center audio --- .../Consoles/Nintendo/GBHawkLink3x/GBHawkLink3x.IEmulator.cs | 5 +++++ .../Consoles/Nintendo/GBHawkLink3x/GBHawkLink3x.ISettable.cs | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawkLink3x/GBHawkLink3x.IEmulator.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawkLink3x/GBHawkLink3x.IEmulator.cs index f812c51eed..951c8a5e04 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawkLink3x/GBHawkLink3x.IEmulator.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawkLink3x/GBHawkLink3x.IEmulator.cs @@ -378,6 +378,11 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawkLink3x samples = temp_samp_L; nsamp = nsamp_L; } + else if (Link3xSettings.AudioSet == GBLink3xSettings.AudioSrc.Center) + { + samples = temp_samp_C; + nsamp = nsamp_C; + } else if (Link3xSettings.AudioSet == GBLink3xSettings.AudioSrc.Right) { samples = temp_samp_R; diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawkLink3x/GBHawkLink3x.ISettable.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawkLink3x/GBHawkLink3x.ISettable.cs index 255341e138..8e74c66c2b 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawkLink3x/GBHawkLink3x.ISettable.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/GBHawkLink3x/GBHawkLink3x.ISettable.cs @@ -57,8 +57,9 @@ namespace BizHawk.Emulation.Cores.Nintendo.GBHawkLink3x public enum AudioSrc { Left, + Center, Right, - Both + None } [DisplayName("Audio Selection")]