summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/OpenALStream.cpp
diff options
context:
space:
mode:
authorMarkus Wick <degasus@users.noreply.github.com>2018-01-02 09:58:36 +0100
committerGitHub <noreply@github.com>2018-01-02 09:58:36 +0100
commitcb168b184386f169aeb828f660ac63c5bc3e540c (patch)
treea7e89360ae75653e46536bd77d9fd27bd44774c1 /Source/Core/AudioCommon/OpenALStream.cpp
parent26a9957285aac023ee7d35cf506b82381575df9a (diff)
parenta988a8a4587bf18d8ad8dba36653b803e3a583b4 (diff)
Merge pull request #6134 from ligfx/soundstreamlifecycle
SoundStream: change Start/Stop lifecycle to Init/SetRunning/destruct
Diffstat (limited to 'Source/Core/AudioCommon/OpenALStream.cpp')
-rw-r--r--Source/Core/AudioCommon/OpenALStream.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/AudioCommon/OpenALStream.cpp b/Source/Core/AudioCommon/OpenALStream.cpp
index ed295ff18c..cb1281a88e 100644
--- a/Source/Core/AudioCommon/OpenALStream.cpp
+++ b/Source/Core/AudioCommon/OpenALStream.cpp
@@ -92,7 +92,7 @@ bool OpenALStream::isValid()
//
// AyuanX: Spec says OpenAL1.1 is thread safe already
//
-bool OpenALStream::Start()
+bool OpenALStream::Init()
{
if (!palcIsExtensionPresent(nullptr, "ALC_ENUMERATION_EXT"))
{
@@ -124,7 +124,7 @@ bool OpenALStream::Start()
return true;
}
-void OpenALStream::Stop()
+OpenALStream::~OpenALStream()
{
m_run_thread.Clear();
// kick the thread if it's waiting
@@ -161,7 +161,7 @@ void OpenALStream::Update()
m_sound_sync_event.Set();
}
-void OpenALStream::SetRunning(bool running)
+bool OpenALStream::SetRunning(bool running)
{
if (running)
{
@@ -171,6 +171,7 @@ void OpenALStream::SetRunning(bool running)
{
palSourceStop(m_source);
}
+ return true;
}
static ALenum CheckALError(const char* desc)