diff options
author | Chris Robinson <[email protected]> | 2020-12-17 03:06:52 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-12-17 03:06:52 -0800 |
commit | 4d1ac95ae2ef1ca3a20205b4cc9893b02f0c7c22 (patch) | |
tree | 6d10b74a983ee2495704f010d554f5bfb26e63af /alc/backends/winmm.cpp | |
parent | d578bc6cb1b9bce4954ded9b138d51980163c233 (diff) |
Don't return an enum from captureSamples
It's always no_error
Diffstat (limited to 'alc/backends/winmm.cpp')
-rw-r--r-- | alc/backends/winmm.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/alc/backends/winmm.cpp b/alc/backends/winmm.cpp index d4e7c786..cdbfd461 100644 --- a/alc/backends/winmm.cpp +++ b/alc/backends/winmm.cpp @@ -378,8 +378,8 @@ struct WinMMCapture 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; std::atomic<ALuint> mReadable{0u}; al::semaphore mSem; @@ -575,14 +575,11 @@ void WinMMCapture::stop() mIdx = 0; } -ALCenum WinMMCapture::captureSamples(al::byte *buffer, ALCuint samples) -{ - mRing->read(buffer, samples); - return ALC_NO_ERROR; -} +void WinMMCapture::captureSamples(al::byte *buffer, uint samples) +{ mRing->read(buffer, samples); } -ALCuint WinMMCapture::availableSamples() -{ return static_cast<ALCuint>(mRing->readSpace()); } +uint WinMMCapture::availableSamples() +{ return static_cast<uint>(mRing->readSpace()); } } // namespace |