summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/OpenSLESStream.cpp
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@gmail.com>2014-10-23 11:29:49 -0500
committerRyan Houdek <Sonicadvance1@gmail.com>2014-10-23 11:29:49 -0500
commit5204acd5eedad4742ca1fdce17e317269fc01bd1 (patch)
treeca8406a870d4d0493fb3e94d8053262bea21425c /Source/Core/AudioCommon/OpenSLESStream.cpp
parent2f48d71ddfed60930a7bb7b347805d3047c81f54 (diff)
Fixes OpenSLES's sample rate.
I was statically setting the sample rate to 44.1Khz when we default to run at 48Khz. This was causing audio to sound much too low.
Diffstat (limited to 'Source/Core/AudioCommon/OpenSLESStream.cpp')
-rw-r--r--Source/Core/AudioCommon/OpenSLESStream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/AudioCommon/OpenSLESStream.cpp b/Source/Core/AudioCommon/OpenSLESStream.cpp
index e4e11652e4..c53af9aff5 100644
--- a/Source/Core/AudioCommon/OpenSLESStream.cpp
+++ b/Source/Core/AudioCommon/OpenSLESStream.cpp
@@ -69,7 +69,7 @@ bool OpenSLESStream::Start()
SLDataFormat_PCM format_pcm = {
SL_DATAFORMAT_PCM,
2,
- SL_SAMPLINGRATE_44_1,
+ m_mixer->GetSampleRate() * 1000,
SL_PCMSAMPLEFORMAT_FIXED_16,
SL_PCMSAMPLEFORMAT_FIXED_16,
SL_SPEAKER_FRONT_LEFT | SL_SPEAKER_FRONT_RIGHT,