mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
Fixed the step_size_bytes in the ADPCM Accelerator loop taking into account the varying number of bytes that ADPCM steps by.
This commit is contained in:
@ -122,8 +122,11 @@ u16 dsp_read_accelerator()
|
||||
switch (g_dsp.ifx_regs[DSP_FORMAT])
|
||||
{
|
||||
case 0x00: // ADPCM audio
|
||||
if ((Address & 15) == 0)
|
||||
step_size_bytes = 2;
|
||||
else
|
||||
step_size_bytes = 1;
|
||||
val = ADPCM_Step(Address);
|
||||
step_size_bytes = 2;
|
||||
break;
|
||||
case 0x0A: // 16-bit PCM audio
|
||||
val = (DSPHost::ReadHostMemory(Address * 2) << 8) | DSPHost::ReadHostMemory(Address * 2 + 1);
|
||||
|
Reference in New Issue
Block a user