fixes for OpenGL ES platforms

This commit is contained in:
Eduardo Bart
2012-05-13 09:48:19 -03:00
parent 5e176ca6d1
commit e2dd71185b
2 changed files with 16 additions and 3 deletions

View File

@@ -224,8 +224,8 @@ SoundSourcePtr SoundManager::createSoundSource(const std::string& filename)
streamSource->setSoundFile(soundFile);
source = streamSource;
#ifdef __linux
// due to OpenAL implementation bug stereo buffers are always downmixed to mono on linux systems
#if defined __linux && !defined OPENGLES
// due to OpenAL implementation bug, stereo buffers are always downmixed to mono on linux systems
// this is hack to work around the issue
// solution taken from http://opensource.creative.com/pipermail/openal/2007-April/010355.html
if(soundFile->getSampleFormat() == AL_FORMAT_STEREO16) {