diff options
author | Chris Robinson <[email protected]> | 2020-08-07 06:17:12 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-08-07 06:22:39 -0700 |
commit | e8b3e82f96d28d725bc44f5a99d0b2646394019e (patch) | |
tree | 973ba706cce984ce19f274daf417c75727f1c407 /alc/alc.cpp | |
parent | 84354c792e17ff5df5edc8d7612dd5a2e4ae4f28 (diff) |
Change a couple functions into member functions
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r-- | alc/alc.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp index 30d363af..e9405493 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -1935,7 +1935,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList) throw al::backend_exception{ALC_INVALID_DEVICE, "Device reset failure"}; } catch(std::exception &e) { - aluHandleDisconnect(device, "%s", e.what()); + device->handleDisconnect("%s", e.what()); return ALC_INVALID_DEVICE; } @@ -2256,7 +2256,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList) device->Flags.set<DeviceRunning>(); } catch(al::backend_exception& e) { - aluHandleDisconnect(device, "%s", e.what()); + device->handleDisconnect("%s", e.what()); return ALC_INVALID_DEVICE; } } @@ -3829,7 +3829,7 @@ START_API_FUNC dev->Flags.set<DeviceRunning>(); } catch(al::backend_exception& e) { - aluHandleDisconnect(dev.get(), "%s", e.what()); + dev->handleDisconnect("%s", e.what()); alcSetError(dev.get(), ALC_INVALID_DEVICE); } } @@ -3989,7 +3989,7 @@ START_API_FUNC else if(samples < 0 || (samples > 0 && buffer == nullptr)) alcSetError(dev.get(), ALC_INVALID_VALUE); else - aluMixData(dev.get(), buffer, static_cast<ALuint>(samples), dev->channelsFromFmt()); + dev->renderSamples(buffer, static_cast<ALuint>(samples), dev->channelsFromFmt()); } END_API_FUNC @@ -4040,7 +4040,7 @@ START_API_FUNC dev->Flags.set<DeviceRunning>(); } catch(al::backend_exception& e) { - aluHandleDisconnect(dev.get(), "%s", e.what()); + dev->handleDisconnect("%s", e.what()); alcSetError(dev.get(), ALC_INVALID_DEVICE); } } |