From 2bc3965c31cf2c55b6016fa0cf1d97d72619d381 Mon Sep 17 00:00:00 2001 From: smelenchuk Date: Sat, 28 May 2011 23:32:11 +0000 Subject: [PATCH] Since LLE can now output at 48kHz, adjust the audio dumper so that it will respect the set sample rate for LLE as well as HLE. This fixes audio dumping for LLE at 48kHz. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7567 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/AudioCommon/Src/WaveFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/AudioCommon/Src/WaveFile.cpp b/Source/Core/AudioCommon/Src/WaveFile.cpp index db1f273bfb..802f3f7417 100644 --- a/Source/Core/AudioCommon/Src/WaveFile.cpp +++ b/Source/Core/AudioCommon/Src/WaveFile.cpp @@ -63,7 +63,7 @@ bool WaveFileWriter::Start(const char *filename, unsigned int HLESampleRate) Write(16); // size of fmt block Write(0x00020001); //two channels, uncompressed - const u32 sample_rate = SConfig::GetInstance().m_LocalCoreStartupParameter.bDSPHLE ? HLESampleRate : 32000; + const u32 sample_rate = HLESampleRate; Write(sample_rate); Write(sample_rate * 2 * 2); //two channels, 16bit