aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alc.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-15 09:50:28 -0700
committerChris Robinson <[email protected]>2019-09-15 09:50:28 -0700
commitc5a3c52822d0ab8e36c2d3d31936eae1da64049f (patch)
tree0608df414c53e281459c29de73a6ca272f9fc33a /alc/alc.cpp
parente4cc77ea237c8a2ca67cb0a1cb28e6d652746590 (diff)
Return and pass more appropriate types for backends
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r--alc/alc.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index fa88cba8..4a4ed677 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -1920,7 +1920,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
device->UpdateSize, device->BufferSize);
try {
- if(device->Backend->reset() == ALC_FALSE)
+ if(device->Backend->reset() == false)
return ALC_INVALID_DEVICE;
}
catch(std::exception &e) {
@@ -2235,7 +2235,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
if(!device->Flags.get<DevicePaused>())
{
- if(device->Backend->start() == ALC_FALSE)
+ if(device->Backend->start() == false)
return ALC_INVALID_DEVICE;
device->Flags.set<DeviceRunning>();
}
@@ -3911,7 +3911,8 @@ START_API_FUNC
{ std::lock_guard<std::mutex> _{dev->StateLock};
BackendBase *backend{dev->Backend.get()};
if(samples >= 0 && backend->availableSamples() >= static_cast<ALCuint>(samples))
- err = backend->captureSamples(buffer, static_cast<ALuint>(samples));
+ err = backend->captureSamples(static_cast<al::byte*>(buffer),
+ static_cast<ALuint>(samples));
}
if(err != ALC_NO_ERROR)
alcSetError(dev.get(), err);
@@ -4085,7 +4086,7 @@ START_API_FUNC
if(dev->mContexts.load()->empty())
return;
- if(dev->Backend->start() == ALC_FALSE)
+ if(dev->Backend->start() == false)
{
aluHandleDisconnect(dev.get(), "Device start failure");
alcSetError(dev.get(), ALC_INVALID_DEVICE);