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/backends/wasapi.cpp | |
parent | 84354c792e17ff5df5edc8d7612dd5a2e4ae4f28 (diff) |
Change a couple functions into member functions
Diffstat (limited to 'alc/backends/wasapi.cpp')
-rw-r--r-- | alc/backends/wasapi.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/alc/backends/wasapi.cpp b/alc/backends/wasapi.cpp index 8e43aa7c..3b209e26 100644 --- a/alc/backends/wasapi.cpp +++ b/alc/backends/wasapi.cpp @@ -683,7 +683,7 @@ FORCE_ALIGN int WasapiPlayback::mixerProc() if(FAILED(hr)) { ERR("CoInitializeEx(nullptr, COINIT_MULTITHREADED) failed: 0x%08lx\n", hr); - aluHandleDisconnect(mDevice, "COM init failed: 0x%08lx", hr); + mDevice->handleDisconnect("COM init failed: 0x%08lx", hr); return 1; } @@ -699,7 +699,7 @@ FORCE_ALIGN int WasapiPlayback::mixerProc() if(FAILED(hr)) { ERR("Failed to get padding: 0x%08lx\n", hr); - aluHandleDisconnect(mDevice, "Failed to retrieve buffer padding: 0x%08lx", hr); + mDevice->handleDisconnect("Failed to retrieve buffer padding: 0x%08lx", hr); break; } mPadding.store(written, std::memory_order_relaxed); @@ -719,7 +719,7 @@ FORCE_ALIGN int WasapiPlayback::mixerProc() { { std::lock_guard<std::mutex> _{mMutex}; - aluMixData(mDevice, buffer, len, mFrameStep); + mDevice->renderSamples(buffer, len, mFrameStep); mPadding.store(written + len, std::memory_order_relaxed); } hr = mRender->ReleaseBuffer(len, 0); @@ -727,7 +727,7 @@ FORCE_ALIGN int WasapiPlayback::mixerProc() if(FAILED(hr)) { ERR("Failed to buffer data: 0x%08lx\n", hr); - aluHandleDisconnect(mDevice, "Failed to send playback samples: 0x%08lx", hr); + mDevice->handleDisconnect("Failed to send playback samples: 0x%08lx", hr); break; } } @@ -1233,7 +1233,7 @@ FORCE_ALIGN int WasapiCapture::recordProc() if(FAILED(hr)) { ERR("CoInitializeEx(nullptr, COINIT_MULTITHREADED) failed: 0x%08lx\n", hr); - aluHandleDisconnect(mDevice, "COM init failed: 0x%08lx", hr); + mDevice->handleDisconnect("COM init failed: 0x%08lx", hr); return 1; } @@ -1305,7 +1305,7 @@ FORCE_ALIGN int WasapiCapture::recordProc() if(FAILED(hr)) { - aluHandleDisconnect(mDevice, "Failed to capture samples: 0x%08lx", hr); + mDevice->handleDisconnect("Failed to capture samples: 0x%08lx", hr); break; } |