aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/portaudio.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-12-17 03:06:52 -0800
committerChris Robinson <[email protected]>2020-12-17 03:06:52 -0800
commit4d1ac95ae2ef1ca3a20205b4cc9893b02f0c7c22 (patch)
tree6d10b74a983ee2495704f010d554f5bfb26e63af /alc/backends/portaudio.cpp
parentd578bc6cb1b9bce4954ded9b138d51980163c233 (diff)
Don't return an enum from captureSamples
It's always no_error
Diffstat (limited to 'alc/backends/portaudio.cpp')
-rw-r--r--alc/backends/portaudio.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/alc/backends/portaudio.cpp b/alc/backends/portaudio.cpp
index 54fac803..5eb87950 100644
--- a/alc/backends/portaudio.cpp
+++ b/alc/backends/portaudio.cpp
@@ -242,8 +242,8 @@ struct PortCapture final : public BackendBase {
void open(const ALCchar *name) override;
void start() override;
void stop() override;
- ALCenum captureSamples(al::byte *buffer, ALCuint samples) override;
- ALCuint availableSamples() override;
+ void captureSamples(al::byte *buffer, uint samples) override;
+ uint availableSamples() override;
PaStream *mStream{nullptr};
PaStreamParameters mParams;
@@ -339,14 +339,11 @@ void PortCapture::stop()
}
-ALCuint PortCapture::availableSamples()
-{ return static_cast<ALCuint>(mRing->readSpace()); }
+uint PortCapture::availableSamples()
+{ return static_cast<uint>(mRing->readSpace()); }
-ALCenum PortCapture::captureSamples(al::byte *buffer, ALCuint samples)
-{
- mRing->read(buffer, samples);
- return ALC_NO_ERROR;
-}
+void PortCapture::captureSamples(al::byte *buffer, uint samples)
+{ mRing->read(buffer, samples); }
} // namespace