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.
This commit is contained in:
Ryan Houdek 2014-10-23 11:29:49 -05:00
parent 2f48d71ddf
commit 5204acd5ee
1 changed files with 1 additions and 1 deletions

View File

@ -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,