diff options
| author | skidau <skidau@gmail.com> | 2015-01-10 12:16:05 +1100 |
|---|---|---|
| committer | skidau <skidau@gmail.com> | 2015-01-10 12:16:05 +1100 |
| commit | f7f70f903936b313b5b98691b86e4dc58d1c7c2c (patch) | |
| tree | 164c0aa66456b8cb1cfd2c45a8f686329472e32d /Source/Core/AudioCommon/OpenALStream.cpp | |
| parent | c1962ac9a6d3338a87da3a9fcfe2995da2054bf9 (diff) | |
| parent | 2c892c7b68c781c52838d6ba1587ad1aeb112826 (diff) | |
Merge pull request #1847 from adamdmoss/openal-floatfix
OpenAL: Fix volume of sample conversion
Diffstat (limited to 'Source/Core/AudioCommon/OpenALStream.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/OpenALStream.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
