mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
DSPAccelerator: rename MMIOPCMHalt to MMIOPCMNoInc
This commit is contained in:
@ -126,7 +126,7 @@ u16 Accelerator::ReadSample(const s16* coefs)
|
|||||||
u16 val = 0;
|
u16 val = 0;
|
||||||
u8 step_size = 0;
|
u8 step_size = 0;
|
||||||
s16 raw_sample;
|
s16 raw_sample;
|
||||||
if (m_sample_format.decode == FormatDecode::MMIOPCMHalt ||
|
if (m_sample_format.decode == FormatDecode::MMIOPCMNoInc ||
|
||||||
m_sample_format.decode == FormatDecode::MMIOPCMInc)
|
m_sample_format.decode == FormatDecode::MMIOPCMInc)
|
||||||
{
|
{
|
||||||
// The addresses can be complete nonsense in either of these modes
|
// The addresses can be complete nonsense in either of these modes
|
||||||
@ -184,7 +184,7 @@ u16 Accelerator::ReadSample(const s16* coefs)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case FormatDecode::MMIOPCMHalt:
|
case FormatDecode::MMIOPCMNoInc:
|
||||||
case FormatDecode::PCM: // 16-bit PCM audio
|
case FormatDecode::PCM: // 16-bit PCM audio
|
||||||
case FormatDecode::MMIOPCMInc:
|
case FormatDecode::MMIOPCMInc:
|
||||||
{
|
{
|
||||||
@ -211,7 +211,7 @@ u16 Accelerator::ReadSample(const s16* coefs)
|
|||||||
m_yn2 = m_yn1;
|
m_yn2 = m_yn1;
|
||||||
m_yn1 = val;
|
m_yn1 = val;
|
||||||
step_size = 2;
|
step_size = 2;
|
||||||
if (m_sample_format.decode != FormatDecode::MMIOPCMHalt)
|
if (m_sample_format.decode != FormatDecode::MMIOPCMNoInc)
|
||||||
{
|
{
|
||||||
m_current_address += 1;
|
m_current_address += 1;
|
||||||
}
|
}
|
||||||
|
@ -65,7 +65,7 @@ protected:
|
|||||||
enum class FormatDecode : u16
|
enum class FormatDecode : u16
|
||||||
{
|
{
|
||||||
ADPCM = 0, // ADPCM reads from ARAM, ACCA increments
|
ADPCM = 0, // ADPCM reads from ARAM, ACCA increments
|
||||||
MMIOPCMHalt = 1, // PCM Reads from ACIN, ACCA doesn't increment
|
MMIOPCMNoInc = 1, // PCM Reads from ACIN, ACCA doesn't increment
|
||||||
PCM = 2, // PCM reads from ARAM, ACCA increments
|
PCM = 2, // PCM reads from ARAM, ACCA increments
|
||||||
MMIOPCMInc = 3 // PCM reads from ACIN, ACCA increments
|
MMIOPCMInc = 3 // PCM reads from ACIN, ACCA increments
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user