diff options
| author | Ryan Houdek <Sonicadvance1@gmail.com> | 2014-10-23 11:29:49 -0500 |
|---|---|---|
| committer | Ryan Houdek <Sonicadvance1@gmail.com> | 2014-10-23 11:29:49 -0500 |
| commit | 5204acd5eedad4742ca1fdce17e317269fc01bd1 (patch) | |
| tree | ca8406a870d4d0493fb3e94d8053262bea21425c /Source/Core/AudioCommon/OpenSLESStream.cpp | |
| parent | 2f48d71ddfed60930a7bb7b347805d3047c81f54 (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.cpp | 2 |
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, |
