summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2021-07-12 21:27:16 +0200
committerLéo Lam <leo@leolam.fr>2021-07-14 19:20:25 +0200
commit887fcfc99a5e4aa674f0e325df3dc699e3f778ba (patch)
tree983a62240b06febd13dc560076743f3dfde3040c /Source/Core
parent9b17805be9ae8c09212f1c798711b915d4f6c58a (diff)
DSPHLE: Remove redundant accelerator end check for AX Wii
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/HW/DSPHLE/UCodes/AXVoice.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/Source/Core/Core/HW/DSPHLE/UCodes/AXVoice.h b/Source/Core/Core/HW/DSPHLE/UCodes/AXVoice.h
index b8b96a00b4..aa9c56fe05 100644
--- a/Source/Core/Core/HW/DSPHLE/UCodes/AXVoice.h
+++ b/Source/Core/Core/HW/DSPHLE/UCodes/AXVoice.h
@@ -146,7 +146,6 @@ void WritePB(u32 addr, const PB_TYPE& pb, u32 crc)
// Simulated accelerator state.
static PB_TYPE* acc_pb;
-static bool acc_end_reached;
class HLEAccelerator final : public Accelerator
{
@@ -177,15 +176,6 @@ protected:
{
// Non looping voice reached the end -> running = 0.
acc_pb->running = 0;
-
-#ifdef AX_WII
- // One of the few meaningful differences between AXGC and AXWii:
- // while AXGC handles non looping voices ending by relying on the
- // accelerator to stop reads once the loop address is reached,
- // AXWii has the 0000 samples internally in DRAM and use an internal
- // pointer to it (loop addr does not contain 0000 samples on AXWii!).
- acc_end_reached = true;
-#endif
}
}
@@ -206,7 +196,6 @@ void AcceleratorSetup(PB_TYPE* pb)
s_accelerator->SetYn1(pb->adpcm.yn1);
s_accelerator->SetYn2(pb->adpcm.yn2);
s_accelerator->SetPredScale(pb->adpcm.pred_scale);
- acc_end_reached = false;
}
// Reads a sample from the accelerator. Also handles looping and
@@ -214,10 +203,6 @@ void AcceleratorSetup(PB_TYPE* pb)
// by the accelerator on real hardware).
u16 AcceleratorGetSample()
{
- // See below for explanations about acc_end_reached.
- if (acc_end_reached)
- return 0;
-
return s_accelerator->Read(acc_pb->adpcm.coefs);
}