diff options
| author | Markus Wick <degasus@users.noreply.github.com> | 2018-01-02 09:58:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-01-02 09:58:36 +0100 |
| commit | cb168b184386f169aeb828f660ac63c5bc3e540c (patch) | |
| tree | a7e89360ae75653e46536bd77d9fd27bd44774c1 /Source/Core/AudioCommon/PulseAudioStream.cpp | |
| parent | 26a9957285aac023ee7d35cf506b82381575df9a (diff) | |
| parent | a988a8a4587bf18d8ad8dba36653b803e3a583b4 (diff) | |
Merge pull request #6134 from ligfx/soundstreamlifecycle
SoundStream: change Start/Stop lifecycle to Init/SetRunning/destruct
Diffstat (limited to 'Source/Core/AudioCommon/PulseAudioStream.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/PulseAudioStream.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
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() { |
