diff options
Diffstat (limited to 'alc/backends/oss.cpp')
-rw-r--r-- | alc/backends/oss.cpp | 15 |
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 |