mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
DSPHLE: set accelerator gain
This commit is contained in:
@ -266,12 +266,11 @@ void AESndAccelerator::WriteMemory(u32 address, u8 value)
|
|||||||
|
|
||||||
static constexpr std::array<s16, 16> ACCELERATOR_COEFS = {}; // all zeros
|
static constexpr std::array<s16, 16> ACCELERATOR_COEFS = {}; // all zeros
|
||||||
|
|
||||||
void AESndUCode::SetUpAccelerator(u16 format, [[maybe_unused]] u16 gain)
|
void AESndUCode::SetUpAccelerator(u16 format, u16 gain)
|
||||||
{
|
{
|
||||||
// setup_accl
|
// setup_accl
|
||||||
m_accelerator.SetSampleFormat(format);
|
m_accelerator.SetSampleFormat(format);
|
||||||
// not currently implemented, but it doesn't matter since the gain is configured to be a no-op
|
m_accelerator.SetGain(gain);
|
||||||
// m_accelerator.SetGain(gain);
|
|
||||||
m_accelerator.SetStartAddress(m_parameter_block.buf_start);
|
m_accelerator.SetStartAddress(m_parameter_block.buf_start);
|
||||||
m_accelerator.SetEndAddress(m_parameter_block.buf_end);
|
m_accelerator.SetEndAddress(m_parameter_block.buf_end);
|
||||||
m_accelerator.SetCurrentAddress(m_parameter_block.buf_curr);
|
m_accelerator.SetCurrentAddress(m_parameter_block.buf_curr);
|
||||||
|
@ -183,6 +183,7 @@ void AcceleratorSetup(HLEAccelerator* accelerator, PB_TYPE* pb)
|
|||||||
accelerator->SetSampleFormat(pb->audio_addr.sample_format);
|
accelerator->SetSampleFormat(pb->audio_addr.sample_format);
|
||||||
accelerator->SetYn1(pb->adpcm.yn1);
|
accelerator->SetYn1(pb->adpcm.yn1);
|
||||||
accelerator->SetYn2(pb->adpcm.yn2);
|
accelerator->SetYn2(pb->adpcm.yn2);
|
||||||
|
accelerator->SetGain(pb->adpcm.gain);
|
||||||
accelerator->SetPredScale(pb->adpcm.pred_scale);
|
accelerator->SetPredScale(pb->adpcm.pred_scale);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user