mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-22 13:50:11 -06:00
SPU: Emulate SOUNDBIAS and 10-bit degrade
This commit is contained in:
13
src/NDS.cpp
13
src/NDS.cpp
@ -596,12 +596,25 @@ void Reset()
|
||||
RTC::Reset();
|
||||
Wifi::Reset();
|
||||
|
||||
// The SOUNDBIAS register does nothing on DSi
|
||||
SPU::SetApplyBias(ConsoleType == 0);
|
||||
|
||||
bool degradeAudio = true;
|
||||
|
||||
if (ConsoleType == 1)
|
||||
{
|
||||
DSi::Reset();
|
||||
KeyInput &= ~(1 << (16+6));
|
||||
degradeAudio = false;
|
||||
}
|
||||
|
||||
if (Config::AudioBitrate == 1) // Always 10-bit
|
||||
degradeAudio = true;
|
||||
else if (Config::AudioBitrate == 2) // Always 16-bit
|
||||
degradeAudio = false;
|
||||
|
||||
SPU::SetDegrade10Bit(degradeAudio);
|
||||
|
||||
AREngine::Reset();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user