From 2c892c7b68c781c52838d6ba1587ad1aeb112826 Mon Sep 17 00:00:00 2001 From: Adam Moss Date: Wed, 7 Jan 2015 12:26:23 +0000 Subject: [PATCH] OpenAL: Fix volume of sample conversion --- Source/Core/AudioCommon/OpenALStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/AudioCommon/OpenALStream.cpp b/Source/Core/AudioCommon/OpenALStream.cpp index bf195dabe7..0752e54b6c 100644 --- a/Source/Core/AudioCommon/OpenALStream.cpp +++ b/Source/Core/AudioCommon/OpenALStream.cpp @@ -201,7 +201,7 @@ void OpenALStream::SoundLoop() // Convert the samples from short to float float dest[OAL_MAX_SAMPLES * STEREO_CHANNELS]; for (u32 i = 0; i < numSamples * STEREO_CHANNELS; ++i) - dest[i] = (float)realtimeBuffer[i] / (1 << 16); + dest[i] = (float)realtimeBuffer[i] / (1 << 15); soundTouch.putSamples(dest, numSamples);