aboutsummaryrefslogtreecommitdiff
path: root/source/apu_blargg.c
diff options
context:
space:
mode:
authorTwinaphex2018-03-31 13:49:54 +0200
committerGitHub2018-03-31 13:49:54 +0200
commit9f836824d9f447ac8f2ffc829ebb02e49caf5e57 (patch)
tree55988350254e2e685e0c55d095d9a0f8d64c41b2 /source/apu_blargg.c
parent8ca47fd3e698aa0ccc63bb62784818d243cf3643 (diff)
parentbb13407869200360f90e10233fc649fc056f4e98 (diff)
downloadsnes9x2005-9f836824d9f447ac8f2ffc829ebb02e49caf5e57.tar.gz
snes9x2005-9f836824d9f447ac8f2ffc829ebb02e49caf5e57.tar.bz2
snes9x2005-9f836824d9f447ac8f2ffc829ebb02e49caf5e57.zip
Merge pull request #53 from Dwedit/submission_1
Add support for Audio/Video Disable flags and Hard Disable Audio
Diffstat (limited to 'source/apu_blargg.c')
-rw-r--r--source/apu_blargg.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/apu_blargg.c b/source/apu_blargg.c
index 49f5491..2976580 100644
--- a/source/apu_blargg.c
+++ b/source/apu_blargg.c
@@ -761,7 +761,8 @@ V(V9_V6_V3,2) -> V(V9,2) V(V6,3) V(V3,4) */
static void dsp_run( int32_t clocks_remain )
{
int32_t phase;
-
+ if (Settings.HardDisableAudio)
+ return;
phase = dsp_m.phase;
dsp_m.phase = (phase + clocks_remain) & 31;
@@ -3259,6 +3260,11 @@ static int8_t const reg_times_ [256] =
29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
};
+void S9xSetSoundMute(bool mute)
+{
+ Settings.Mute = mute;
+}
+
bool S9xInitAPU()
{
int32_t i;