summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/OpenALStream.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2021-08-08 13:16:54 +0200
committerGitHub <noreply@github.com>2021-08-08 13:16:54 +0200
commit8e1dbdb257f612cf7e230b28b739de0a6d506d24 (patch)
treefa1ef2b026d3e482e22580d2d4c3077e17ae41a3 /Source/Core/AudioCommon/OpenALStream.cpp
parent682c7454f0ca05ce8d538744e7a868e2452ca5a5 (diff)
parenteda2035874309233a3971aed075c0417c1f18ef7 (diff)
Merge pull request #10006 from Tilka/pulse
AudioCommon: fix bogus error + cleanup
Diffstat (limited to 'Source/Core/AudioCommon/OpenALStream.cpp')
-rw-r--r--Source/Core/AudioCommon/OpenALStream.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/Source/Core/AudioCommon/OpenALStream.cpp b/Source/Core/AudioCommon/OpenALStream.cpp
index 96b2a5d628..3e56fe8e08 100644
--- a/Source/Core/AudioCommon/OpenALStream.cpp
+++ b/Source/Core/AudioCommon/OpenALStream.cpp
@@ -83,7 +83,7 @@ static bool InitLibrary()
return true;
}
-bool OpenALStream::isValid()
+bool OpenALStream::IsValid()
{
return InitLibrary();
}
@@ -126,9 +126,6 @@ bool OpenALStream::Init()
OpenALStream::~OpenALStream()
{
m_run_thread.Clear();
- // kick the thread if it's waiting
- m_sound_sync_event.Set();
-
m_thread.join();
palSourceStop(m_source);
@@ -155,11 +152,6 @@ void OpenALStream::SetVolume(int volume)
palSourcef(m_source, AL_GAIN, m_volume);
}
-void OpenALStream::Update()
-{
- m_sound_sync_event.Set();
-}
-
bool OpenALStream::SetRunning(bool running)
{
if (running)