aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/oss.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/oss.cpp
parentd578bc6cb1b9bce4954ded9b138d51980163c233 (diff)
Don't return an enum from captureSamples
It's always no_error
Diffstat (limited to 'alc/backends/oss.cpp')
-rw-r--r--alc/backends/oss.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/alc/backends/oss.cpp b/alc/backends/oss.cpp
index 513f481a..f61e5c0d 100644
--- a/alc/backends/oss.cpp
+++ b/alc/backends/oss.cpp
@@ -447,8 +447,8 @@ struct OSScapture 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;
int mFd{-1};
@@ -615,14 +615,11 @@ void OSScapture::stop()
ERR("Error resetting device: %s\n", strerror(errno));
}
-ALCenum OSScapture::captureSamples(al::byte *buffer, ALCuint samples)
-{
- mRing->read(buffer, samples);
- return ALC_NO_ERROR;
-}
+void OSScapture::captureSamples(al::byte *buffer, uint samples)
+{ mRing->read(buffer, samples); }
-ALCuint OSScapture::availableSamples()
-{ return static_cast<ALCuint>(mRing->readSpace()); }
+uint OSScapture::availableSamples()
+{ return static_cast<uint>(mRing->readSpace()); }
} // namespace