aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/pulseaudio.cpp
diff options
context:
space:
mode:
authorChris Robinson <chris.kcat@gmail.com>2020-04-28 19:25:58 -0700
committerChris Robinson <chris.kcat@gmail.com>2020-04-28 19:25:58 -0700
commit4094135ed7e7d1f2c22cf944094f7f0daf2cd8e6 (patch)
tree4ab7df9fb3afb2554fbe4c48e522263fb7e2d670 /alc/backends/pulseaudio.cpp
parent065775d814a972bfedf2cc8e5db35a56f1eecb93 (diff)
Don't return a bool from the backend start method
Diffstat (limited to 'alc/backends/pulseaudio.cpp')
-rw-r--r--alc/backends/pulseaudio.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/alc/backends/pulseaudio.cpp b/alc/backends/pulseaudio.cpp
index 9ca178c1..8ebea1d9 100644
--- a/alc/backends/pulseaudio.cpp
+++ b/alc/backends/pulseaudio.cpp
@@ -714,7 +714,7 @@ struct PulsePlayback final : public BackendBase {
void open(const ALCchar *name) override;
bool reset() override;
- bool start() override;
+ void start() override;
void stop() override;
ClockLatency getClockLatency() override;
@@ -1047,7 +1047,7 @@ bool PulsePlayback::reset()
return true;
}
-bool PulsePlayback::start()
+void PulsePlayback::start()
{
auto plock = mMainloop.getUniqueLock();
@@ -1080,7 +1080,6 @@ bool PulsePlayback::start()
}
mMainloop.waitForOperation(op, plock);
- return true;
}
void PulsePlayback::stop()
@@ -1142,7 +1141,7 @@ struct PulseCapture final : public BackendBase {
{ static_cast<PulseCapture*>(pdata)->streamMovedCallback(stream); }
void open(const ALCchar *name) override;
- bool start() override;
+ void start() override;
void stop() override;
ALCenum captureSamples(al::byte *buffer, ALCuint samples) override;
ALCuint availableSamples() override;
@@ -1308,13 +1307,12 @@ void PulseCapture::open(const ALCchar *name)
}
}
-bool PulseCapture::start()
+void PulseCapture::start()
{
auto plock = mMainloop.getUniqueLock();
pa_operation *op{pa_stream_cork(mStream, 0, &PulseMainloop::streamSuccessCallbackC,
&mMainloop)};
mMainloop.waitForOperation(op, plock);
- return true;
}
void PulseCapture::stop()