From 0baddbf9a8152ab7dd3ab200e516a998a0c9433f Mon Sep 17 00:00:00 2001 From: Michael M Date: Sat, 21 Oct 2017 16:23:40 -0700 Subject: SoundStream: change Start/Stop to Init/SetRunning/destruct --- Source/Core/AudioCommon/PulseAudioStream.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'Source/Core/AudioCommon/PulseAudioStream.cpp') diff --git a/Source/Core/AudioCommon/PulseAudioStream.cpp b/Source/Core/AudioCommon/PulseAudioStream.cpp index 827816d4e8..e8d5090b25 100644 --- a/Source/Core/AudioCommon/PulseAudioStream.cpp +++ b/Source/Core/AudioCommon/PulseAudioStream.cpp @@ -19,7 +19,7 @@ PulseAudio::PulseAudio() : m_thread(), m_run_thread() { } -bool PulseAudio::Start() +bool PulseAudio::Init() { m_stereo = !SConfig::GetInstance().bDPL2Decoder; m_channels = m_stereo ? 2 : 5; // will tell PA we use a Stereo or 5.0 channel setup @@ -32,17 +32,12 @@ bool PulseAudio::Start() return true; } -void PulseAudio::Stop() +PulseAudio::~PulseAudio() { m_run_thread.Clear(); m_thread.join(); } -void PulseAudio::Update() -{ - // don't need to do anything here. -} - // Called on audio thread. void PulseAudio::SoundLoop() { -- cgit v1.2.3