From d14b9a73b2f69377a80a14b5561a26e28dcf42b3 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Sat, 7 Aug 2021 22:02:10 +0100 Subject: AudioCommon: get rid of Update(), it never does anything --- Source/Core/AudioCommon/OpenALStream.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'Source/Core/AudioCommon/OpenALStream.cpp') diff --git a/Source/Core/AudioCommon/OpenALStream.cpp b/Source/Core/AudioCommon/OpenALStream.cpp index 96b2a5d628..b2e61dae98 100644 --- a/Source/Core/AudioCommon/OpenALStream.cpp +++ b/Source/Core/AudioCommon/OpenALStream.cpp @@ -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) -- cgit v1.2.3 From eda2035874309233a3971aed075c0417c1f18ef7 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Sun, 8 Aug 2021 00:23:58 +0100 Subject: AudioCommon: rename isValid() to IsValid() --- Source/Core/AudioCommon/OpenALStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/AudioCommon/OpenALStream.cpp') diff --git a/Source/Core/AudioCommon/OpenALStream.cpp b/Source/Core/AudioCommon/OpenALStream.cpp index b2e61dae98..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(); } -- cgit v1.2.3