aboutsummaryrefslogtreecommitdiff
path: root/source/cpuexec.c
diff options
context:
space:
mode:
authorJoão Silva2017-01-16 22:39:57 +0000
committerJoão Silva2017-01-16 22:39:57 +0000
commitcbbfa871ae3d9db3852d9122a6d8355896c073ed (patch)
tree73e7755d117b8dd9eea499977c632727deb20d00 /source/cpuexec.c
parent7ed90abe19954aaf1fa56657a08e3cae4c8a67ce (diff)
downloadsnes9x2005-cbbfa871ae3d9db3852d9122a6d8355896c073ed.tar.gz
snes9x2005-cbbfa871ae3d9db3852d9122a6d8355896c073ed.tar.bz2
snes9x2005-cbbfa871ae3d9db3852d9122a6d8355896c073ed.zip
Many cleanups.
Diffstat (limited to 'source/cpuexec.c')
-rw-r--r--source/cpuexec.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/source/cpuexec.c b/source/cpuexec.c
index 6b1896c..b88e6f1 100644
--- a/source/cpuexec.c
+++ b/source/cpuexec.c
@@ -13,8 +13,6 @@
#include "sa1.h"
#include "spc7110.h"
-extern void S9xProcessSound(unsigned int);
-
void S9xMainLoop_SA1_SFX(void);
void S9xMainLoop_SA1_NoSFX(void);
void S9xMainLoop_NoSA1_SFX(void);
@@ -112,10 +110,7 @@ void S9xMainLoop_SA1_SFX(void)
S9xAPUPackStatus();
#endif
if (CPU.Flags & SCAN_KEYS_FLAG)
- {
- S9xSyncSpeed();
CPU.Flags &= ~SCAN_KEYS_FLAG;
- }
#ifdef DETECT_NASTY_FX_INTERLEAVE
if (CPU.BRKTriggered && Settings.SuperFX && !CPU.TriedInterleavedMode2)
@@ -196,10 +191,7 @@ void S9xMainLoop_SA1_NoSFX(void)
S9xAPUPackStatus();
#endif
if (CPU.Flags & SCAN_KEYS_FLAG)
- {
- S9xSyncSpeed();
CPU.Flags &= ~SCAN_KEYS_FLAG;
- }
}
void S9xMainLoop_NoSA1_SFX(void)
@@ -269,10 +261,7 @@ void S9xMainLoop_NoSA1_SFX(void)
S9xAPUPackStatus();
#endif
if (CPU.Flags & SCAN_KEYS_FLAG)
- {
- S9xSyncSpeed();
CPU.Flags &= ~SCAN_KEYS_FLAG;
- }
#ifdef DETECT_NASTY_FX_INTERLEAVE
if (CPU.BRKTriggered && Settings.SuperFX && !CPU.TriedInterleavedMode2)
@@ -351,10 +340,7 @@ void S9xMainLoop_NoSA1_NoSFX(void)
S9xAPUPackStatus();
#endif
if (CPU.Flags & SCAN_KEYS_FLAG)
- {
- S9xSyncSpeed();
CPU.Flags &= ~SCAN_KEYS_FLAG;
- }
}
void S9xSetIRQ(uint32_t source)
@@ -402,9 +388,6 @@ void S9xDoHBlankProcessing_SFX()
S9xSuperFXExec();
#ifndef USE_BLARGG_APU
- if (Settings.SoundSync)
- S9xGenerateSound();
-
CPU.Cycles -= Settings.H_Max;
if (IAPU.APUExecuting)
{
@@ -436,8 +419,6 @@ void S9xDoHBlankProcessing_SFX()
S9xStartHDMA();
}
- S9xProcessSound(0);
-
if (PPU.VTimerEnabled && !PPU.HTimerEnabled && CPU.V_Counter == PPU.IRQVBeamPos)
S9xSetIRQ(PPU_V_BEAM_IRQ_SOURCE);
@@ -579,9 +560,6 @@ void S9xDoHBlankProcessing_NoSFX()
case HBLANK_END_EVENT:
#ifndef USE_BLARGG_APU
- if (Settings.SoundSync)
- S9xGenerateSound();
-
CPU.Cycles -= Settings.H_Max;
if (IAPU.APUExecuting)
{
@@ -614,8 +592,6 @@ void S9xDoHBlankProcessing_NoSFX()
S9xStartHDMA();
}
- S9xProcessSound(0);
-
if (PPU.VTimerEnabled && !PPU.HTimerEnabled && CPU.V_Counter == PPU.IRQVBeamPos)
S9xSetIRQ(PPU_V_BEAM_IRQ_SOURCE);
@@ -740,4 +716,3 @@ void S9xDoHBlankProcessing_NoSFX()
S9xReschedule();
}
-