From 88164affae73df3cb393a353f7c559c53502003c Mon Sep 17 00:00:00 2001 From: jpark37 Date: Sat, 25 Sep 2021 12:06:43 -0700 Subject: [PATCH] win-wasapi: Rename InitRender to ClearBuffer We no longer persist the render client. --- plugins/win-wasapi/win-wasapi.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/win-wasapi/win-wasapi.cpp b/plugins/win-wasapi/win-wasapi.cpp index bc2d7ce24..f7b2d78db 100644 --- a/plugins/win-wasapi/win-wasapi.cpp +++ b/plugins/win-wasapi/win-wasapi.cpp @@ -64,7 +64,7 @@ class WASAPISource { ComPtr InitDevice(); void InitName(); void InitClient(IMMDevice *device); - void InitRender(IMMDevice *device); + void ClearBuffer(IMMDevice *device); void InitFormat(WAVEFORMATEX *wfex); void InitCapture(); void Initialize(); @@ -279,7 +279,7 @@ void WASAPISource::InitClient(IMMDevice *device) throw HRError("Failed to initialize audio client", res); } -void WASAPISource::InitRender(IMMDevice *device) +void WASAPISource::ClearBuffer(IMMDevice *device) { CoTaskMemPtr wfex; HRESULT res; @@ -384,7 +384,7 @@ void WASAPISource::Initialize() InitClient(device); if (!isInputDevice) - InitRender(device); + ClearBuffer(device); InitCapture(); blog(LOG_INFO, "WASAPI: Device '%s' [%" PRIu32 " Hz] initialized",