AudioCommon: fix "Error stopping stream" when emulation is paused
This commit is contained in:
parent
a4e5d233be
commit
c2d396526b
|
@ -14,7 +14,7 @@ class OpenSLESStream final : public SoundStream
|
|||
public:
|
||||
~OpenSLESStream() override;
|
||||
bool Init() override;
|
||||
bool SetRunning(bool running) override { return running; }
|
||||
bool SetRunning(bool running) override { return true; }
|
||||
void SetVolume(int volume) override;
|
||||
static bool isValid() { return true; }
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ public:
|
|||
~PulseAudio() override;
|
||||
|
||||
bool Init() override;
|
||||
bool SetRunning(bool running) override { return running; }
|
||||
bool SetRunning(bool running) override { return true; }
|
||||
static bool isValid() { return true; }
|
||||
void StateCallback(pa_context* c);
|
||||
void WriteCallback(pa_stream* s, size_t length);
|
||||
|
|
|
@ -22,5 +22,6 @@ public:
|
|||
virtual void SetVolume(int) {}
|
||||
virtual void SoundLoop() {}
|
||||
virtual void Update() {}
|
||||
// Returns true if successful.
|
||||
virtual bool SetRunning(bool running) { return false; }
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue