mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-29 17:15:40 +00:00
System: Fix dumping audio on boot
This commit is contained in:
parent
899efb2bdc
commit
201a671709
|
@ -450,9 +450,9 @@ void SPU::CPUClockChanged()
|
||||||
|
|
||||||
void SPU::Shutdown()
|
void SPU::Shutdown()
|
||||||
{
|
{
|
||||||
|
StopDumpingAudio();
|
||||||
s_tick_event.reset();
|
s_tick_event.reset();
|
||||||
s_transfer_event.reset();
|
s_transfer_event.reset();
|
||||||
s_dump_writer.reset();
|
|
||||||
s_audio_stream.reset();
|
s_audio_stream.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1273,6 +1273,9 @@ bool System::BootSystem(SystemBootParameters parameters)
|
||||||
if (parameters.load_image_to_ram || g_settings.cdrom_load_image_to_ram)
|
if (parameters.load_image_to_ram || g_settings.cdrom_load_image_to_ram)
|
||||||
g_cdrom.PrecacheMedia();
|
g_cdrom.PrecacheMedia();
|
||||||
|
|
||||||
|
if (g_settings.audio_dump_on_boot)
|
||||||
|
StartDumpingAudio();
|
||||||
|
|
||||||
ResetPerformanceCounters();
|
ResetPerformanceCounters();
|
||||||
if (IsRunning())
|
if (IsRunning())
|
||||||
UpdateSpeedLimiterState();
|
UpdateSpeedLimiterState();
|
||||||
|
|
Loading…
Reference in a new issue