SoundStream: change Start/Stop to Init/SetRunning/destruct

This commit is contained in:
Michael M
2017-10-21 16:23:40 -07:00
parent ad4a89d64b
commit 0baddbf9a8
18 changed files with 102 additions and 121 deletions

View File

@ -18,11 +18,10 @@ class PulseAudio final : public SoundStream
#if defined(HAVE_PULSEAUDIO) && HAVE_PULSEAUDIO
public:
PulseAudio();
~PulseAudio() override;
bool Start() override;
void Stop() override;
void Update() override;
bool Init() override;
bool SetRunning(bool running) override { return running; }
static bool isValid() { return true; }
void StateCallback(pa_context* c);
void WriteCallback(pa_stream* s, size_t length);