summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/Src/OpenALStream.cpp
diff options
context:
space:
mode:
authorGlenn Rice <glennricster@gmail.com>2013-01-29 23:24:51 -0600
committerGlenn Rice <glennricster@gmail.com>2013-01-29 23:24:51 -0600
commit0ffdd2607f4ce56e4a35e959d1f5adcc07959320 (patch)
tree1095c0b8851271c2e6a4c4fa793b48c0975029e0 /Source/Core/AudioCommon/Src/OpenALStream.cpp
parent18e69acc15ccdd5b63e76c0bc4c2e2d4397861c3 (diff)
Fix the majority of the compiler warnings unearthed by the addition of
the new warning flags.
Diffstat (limited to 'Source/Core/AudioCommon/Src/OpenALStream.cpp')
-rw-r--r--Source/Core/AudioCommon/Src/OpenALStream.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/AudioCommon/Src/OpenALStream.cpp b/Source/Core/AudioCommon/Src/OpenALStream.cpp
index cfe6a40630..6b239a584c 100644
--- a/Source/Core/AudioCommon/Src/OpenALStream.cpp
+++ b/Source/Core/AudioCommon/Src/OpenALStream.cpp
@@ -316,7 +316,7 @@ void OpenALStream::SoundLoop()
if (iBuffersFilled == numBuffers)
{
alSourcePlay(uiSource);
- ALenum err = alGetError();
+ err = alGetError();
if (err != 0)
{
ERROR_LOG(AUDIO, "Error occurred during playback: %08x", err);
@@ -328,7 +328,7 @@ void OpenALStream::SoundLoop()
{
// Buffer underrun occurred, resume playback
alSourcePlay(uiSource);
- ALenum err = alGetError();
+ err = alGetError();
if (err != 0)
{
ERROR_LOG(AUDIO, "Error occurred resuming playback: %08x", err);