Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions RS_ASIO/AsioHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static bool ReadRegistryStringA(std::string& out, HKEY hKey, const TCHAR* valueN
#ifdef UNICODE
char converted[bufferSize];

if (WideCharToMultiByte(CP_ACP, 0, (wchar_t*)buffer, readSize / sizeof(wchar_t), converted, bufferSize, nullptr, nullptr) == 0)
if (WideCharToMultiByte(CP_ACP, 0, (LPCWSTR)buffer, readSize / sizeof(wchar_t), converted, bufferSize, nullptr, nullptr) == 0)
return false;

out = converted;
Expand Down Expand Up @@ -125,6 +125,7 @@ static bool GetRegistryAsioDriverPath(std::string& out, const CLSID& clsid)
return result;
}


static bool GetRegistryDriverInfo(AsioHelpers::DriverInfo& outInfo, HKEY hKey, const TCHAR* keyName)
{
bool result = false;
Expand All @@ -136,11 +137,7 @@ static bool GetRegistryDriverInfo(AsioHelpers::DriverInfo& outInfo, HKEY hKey, c
AsioHelpers::DriverInfo tmpInfo;

// set name
#ifdef UNICODE
tmpInfo.Name = ConvertWStrToStr(keyName);
#else
tmpInfo.Name = keyName;
#endif

// read CLSID
result = ReadRegistryClsid(tmpInfo.Clsid, hksub, COM_CLSID);
Expand Down Expand Up @@ -270,4 +267,4 @@ AsioSharedHost* AsioHelpers::CreateAsioHost(const DriverInfo& driverInfo)
}

return host;
}
}
27 changes: 15 additions & 12 deletions RS_ASIO/AsioSharedHost.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#include "stdafx.h"

#include <cmath>

#include "AsioSharedHost.h"

#define TEST_OUTPUT_NOISE 0
Expand Down Expand Up @@ -217,7 +220,7 @@ ASIOError AsioSharedHost::SetSamplerate(const DWORD rate)

ASIOError AsioSharedHost::Setup(const WAVEFORMATEX& format, const DWORD bufferDurationFrames)
{
rslog::info_ts() << __FUNCTION__ " - startCount: " << m_StartCount << std::endl;
rslog::info_ts() << __FUNCTION__ << " - startCount: " << m_StartCount << std::endl;

if (!IsValid())
return ASE_NotPresent;
Expand Down Expand Up @@ -363,7 +366,7 @@ void AsioSharedHost::Reset()

ASIOError AsioSharedHost::Start()
{
rslog::info_ts() << __FUNCTION__ " - enter startCount: " << m_StartCount << std::endl;
rslog::info_ts() << __FUNCTION__ << " - enter startCount: " << m_StartCount << std::endl;

if (!IsValid() || !m_IsSetup)
return ASE_NotPresent;
Expand All @@ -384,7 +387,7 @@ ASIOError AsioSharedHost::Start()

++m_StartCount;

rslog::info_ts() << __FUNCTION__ " - leave startCount: " << m_StartCount << std::endl;
rslog::info_ts() << __FUNCTION__ << " - leave startCount: " << m_StartCount << std::endl;

return ASE_OK;
}
Expand All @@ -393,22 +396,22 @@ void AsioSharedHost::Stop()
{
if (!m_AsioMutex.try_lock())
{
rslog::info_ts() << m_DriverName << " " __FUNCTION__ " - failed to get lock first time. This might be harmless, but if we freeze here this is likely related" << std::endl;
rslog::info_ts() << m_DriverName << " " << __FUNCTION__ << " - failed to get lock first time. This might be harmless, but if we freeze here this is likely related" << std::endl;
m_AsioMutex.lock();
}

std::lock_guard<std::mutex> guard(m_AsioMutex, std::adopt_lock);

rslog::info_ts() << __FUNCTION__ " - enter startCount: " << m_StartCount << std::endl;
rslog::info_ts() << __FUNCTION__ << " - enter startCount: " << m_StartCount << std::endl;

if (m_StartCount == 0)
{
rslog::error_ts() << __FUNCTION__ " - too many stop calls!" << std::endl;
rslog::error_ts() << __FUNCTION__ << " - too many stop calls!" << std::endl;
return;
}
else if (m_StartCount == 1)
{
rslog::info_ts() << __FUNCTION__ " - stopping ASIO stream" << std::endl;
rslog::info_ts() << __FUNCTION__ << " - stopping ASIO stream" << std::endl;
if (m_Driver->stop() != ASE_OK)
{
rslog::error_ts() << " Failed to stop ASIO stream" << std::endl;
Expand All @@ -418,7 +421,7 @@ void AsioSharedHost::Stop()

--m_StartCount;

rslog::info_ts() << __FUNCTION__ " - leave startCount: " << m_StartCount << std::endl;
rslog::info_ts() << __FUNCTION__ << " - leave startCount: " << m_StartCount << std::endl;
}

bool AsioSharedHost::GetPreferredBufferSize(DWORD& outBufferSizeFrames) const
Expand Down Expand Up @@ -740,7 +743,7 @@ void __cdecl AsioSharedHost::AsioCalback_bufferSwitch(long doubleBufferIndex, AS
{
if (!m_AsioMutex.try_lock())
{
rslog::info_ts() << m_DriverName << " " __FUNCTION__ " - aborting buffer switch handling as mutex is already locked." << std::endl;
rslog::info_ts() << m_DriverName << " " << __FUNCTION__ << " - aborting buffer switch handling as mutex is already locked." << std::endl;
return;
}

Expand All @@ -753,12 +756,12 @@ void __cdecl AsioSharedHost::AsioCalback_bufferSwitch(long doubleBufferIndex, AS
if (m_dbgNumBufferSwitches < 2)
{
++m_dbgNumBufferSwitches;
rslog::info_ts() << m_DriverName << " - " __FUNCTION__ " - buffer switch " << m_dbgNumBufferSwitches << std::endl;
rslog::info_ts() << m_DriverName << " - " << __FUNCTION__ << " - buffer switch " << m_dbgNumBufferSwitches << std::endl;
}
else if (m_dbgNumBufferSwitches == 2)
{
++m_dbgNumBufferSwitches;
rslog::info_ts() << m_DriverName << " - " __FUNCTION__ " - buffer switch " << m_dbgNumBufferSwitches << " (not logging upcoming switches)" << std::endl;
rslog::info_ts() << m_DriverName << " - " << __FUNCTION__ << " - buffer switch " << m_dbgNumBufferSwitches << " (not logging upcoming switches)" << std::endl;
}

// zero output
Expand Down Expand Up @@ -828,7 +831,7 @@ void __cdecl AsioSharedHost::AsioCalback_sampleRateDidChange(ASIOSampleRate sRat

long __cdecl AsioSharedHost::AsioCalback_asioMessage(long selector, long value, void* message, double* opt)
{
rslog::info_ts() << __FUNCTION__ " - selector: " << selector << " value: " << value << " | returning: ";
rslog::info_ts() << __FUNCTION__ << " - selector: " << selector << " value: " << value << " | returning: ";

long ret = 0;

Expand Down
5 changes: 5 additions & 0 deletions RS_ASIO/AsioSharedHost.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

#include "ComBaseUnknown.h"

#include <memory>
#include <string>
#include <mutex>
#include <thread>

class IAsioBufferSwitchListener
{
public:
Expand Down
9 changes: 8 additions & 1 deletion RS_ASIO/ComBaseUnknown.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#pragma once

#include <type_traits>
#include <iostream>

#include <unknwn.h>

#include "Log.h"

template <class TBase>
class ComBaseUnknown : public TBase
{
Expand Down Expand Up @@ -40,5 +47,5 @@ class ComBaseUnknown : public TBase
}

private:
ULONG m_RefCount = 1;
LONG m_RefCount = 1;
};
2 changes: 1 addition & 1 deletion RS_ASIO/Configurator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ static bool parseIntString(const std::string& s, int& out)

static void LoadConfigIni(RSConfig& out)
{
const std::wstring& cfgPath = GetConfigFilePath();
const std::string cfgPath = ConvertWStrToStr(GetConfigFilePath());
if (cfgPath.size() == 0)
return;

Expand Down
4 changes: 2 additions & 2 deletions RS_ASIO/DebugDeviceEnum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ HRESULT STDMETHODCALLTYPE DebugDeviceEnum::QueryInterface(REFIID riid, void **pp

HRESULT STDMETHODCALLTYPE DebugDeviceEnum::EnumAudioEndpoints(EDataFlow dataFlow, DWORD dwStateMask, IMMDeviceCollection **ppDevices)
{
rslog::info_ts() << __FUNCTION__ " - dataFlow: " << Dataflow2String(dataFlow) << " - dwStateMask: " << dwStateMask << std::endl;
rslog::info_ts() << __FUNCTION__ << " - dataFlow: " << Dataflow2String(dataFlow) << " - dwStateMask: " << dwStateMask << std::endl;

HRESULT hr = RSBaseDeviceEnum::EnumAudioEndpoints(dataFlow, dwStateMask, ppDevices);
rslog::info_ts() << " hr: " << HResultToStr(hr) << std::endl;
Expand All @@ -46,7 +46,7 @@ HRESULT STDMETHODCALLTYPE DebugDeviceEnum::EnumAudioEndpoints(EDataFlow dataFlow

HRESULT STDMETHODCALLTYPE DebugDeviceEnum::GetDefaultAudioEndpoint(EDataFlow dataFlow, ERole role, IMMDevice **ppEndpoint)
{
rslog::info_ts() << __FUNCTION__ " - dataFlow: " << Dataflow2String(dataFlow) << " - role: " << Role2String(role) << std::endl;
rslog::info_ts() << __FUNCTION__ << " - dataFlow: " << Dataflow2String(dataFlow) << " - role: " << Role2String(role) << std::endl;

HRESULT hr = RSBaseDeviceEnum::GetDefaultAudioEndpoint(dataFlow, role, ppEndpoint);
rslog::info_ts() << " hr: " << HResultToStr(hr) << std::endl;
Expand Down
42 changes: 21 additions & 21 deletions RS_ASIO/DebugWrapperAudioClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ DebugWrapperAudioClient<TBase>::~DebugWrapperAudioClient()
template<typename TBase>
HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient<TBase>::QueryInterface(REFIID riid, void **ppvObject)
{
rslog::info_ts() << this->GetDeviceId() << " " __FUNCTION__ << " riid: " << riid << std::endl;
rslog::info_ts() << this->GetDeviceId() << " " << __FUNCTION__ << " riid: " << riid << std::endl;

HRESULT hr = E_POINTER;

Expand All @@ -46,7 +46,7 @@ HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient<TBase>::QueryInterface(REFIID
this->AddRef();
hr = S_OK;
}
else if (riid == __uuidof(MyUnknown))
else if(riid == __uuidof(MyUnknown))
{
return m_RealAudioClient.QueryInterface(riid, ppvObject);
}
Expand All @@ -63,7 +63,7 @@ HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient<TBase>::QueryInterface(REFIID
template<typename TBase>
HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient<TBase>::Initialize(AUDCLNT_SHAREMODE ShareMode, DWORD StreamFlags, REFERENCE_TIME hnsBufferDuration, REFERENCE_TIME hnsPeriodicity, const WAVEFORMATEX *pFormat, LPCGUID AudioSessionGuid)
{
rslog::info_ts() << this->GetDeviceId() << " " __FUNCTION__ " - ShareMode: " << ShareMode << " Flags: " << std::hex << StreamFlags << " bufferDuration: " << std::dec << RefTimeToMilisecs(hnsBufferDuration) << "ms periodicity: " << RefTimeToMilisecs(hnsPeriodicity) << "ms" << std::endl;
rslog::info_ts() << this->GetDeviceId() << " " << __FUNCTION__ << " - ShareMode: " << ShareMode << " Flags: " << std::hex << StreamFlags << " bufferDuration: " << std::dec << RefTimeToMilisecs(hnsBufferDuration) << "ms periodicity: " << RefTimeToMilisecs(hnsPeriodicity) << "ms" << std::endl;

HRESULT hr = m_RealAudioClient.Initialize(ShareMode, StreamFlags, hnsBufferDuration, hnsPeriodicity, pFormat, AudioSessionGuid);
DEBUG_PRINT_HR(hr);
Expand All @@ -74,7 +74,7 @@ HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient<TBase>::Initialize(AUDCLNT_SHA
template<typename TBase>
HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient<TBase>::GetBufferSize(UINT32 *pNumBufferFrames)
{
rslog::info_ts() << this->GetDeviceId() << " " __FUNCTION__ << std::endl;
rslog::info_ts() << this->GetDeviceId() << " " << __FUNCTION__ << std::endl;

HRESULT hr = m_RealAudioClient.GetBufferSize(pNumBufferFrames);
DEBUG_PRINT_HR(hr);
Expand All @@ -90,7 +90,7 @@ HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient<TBase>::GetBufferSize(UINT32 *
template<typename TBase>
HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient<TBase>::GetStreamLatency(REFERENCE_TIME *phnsLatency)
{
rslog::info_ts() << this->GetDeviceId() << " " __FUNCTION__ << std::endl;
rslog::info_ts() << this->GetDeviceId() << " " << __FUNCTION__ << std::endl;

HRESULT hr = m_RealAudioClient.GetStreamLatency(phnsLatency);
DEBUG_PRINT_HR(hr);
Expand All @@ -117,7 +117,7 @@ HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient<TBase>::GetCurrentPadding(UINT
template<typename TBase>
HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient<TBase>::IsFormatSupported(AUDCLNT_SHAREMODE ShareMode, const WAVEFORMATEX *pFormat, WAVEFORMATEX **ppClosestMatch)
{
rslog::info_ts() << this->GetDeviceId() << " " __FUNCTION__ " - ShareMode: " << ShareMode << std::endl;
rslog::info_ts() << this->GetDeviceId() << " " << __FUNCTION__ << " - ShareMode: " << ShareMode << std::endl;

if (!pFormat)
return E_POINTER;
Expand All @@ -136,7 +136,7 @@ HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient<TBase>::IsFormatSupported(AUDC
template<typename TBase>
HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient<TBase>::GetMixFormat(WAVEFORMATEX **ppDeviceFormat)
{
rslog::info_ts() << this->GetDeviceId() << " " __FUNCTION__ << std::endl;
rslog::info_ts() << this->GetDeviceId() << " " << __FUNCTION__ << std::endl;

HRESULT hr = m_RealAudioClient.GetMixFormat(ppDeviceFormat);
DEBUG_PRINT_HR(hr);
Expand All @@ -147,7 +147,7 @@ HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient<TBase>::GetMixFormat(WAVEFORMA
template<typename TBase>
HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient<TBase>::GetDevicePeriod(REFERENCE_TIME *phnsDefaultDevicePeriod, REFERENCE_TIME *phnsMinimumDevicePeriod)
{
rslog::info_ts() << this->GetDeviceId() << " " __FUNCTION__ << std::endl;
rslog::info_ts() << this->GetDeviceId() << " " << __FUNCTION__ << std::endl;

HRESULT hr = m_RealAudioClient.GetDevicePeriod(phnsDefaultDevicePeriod, phnsMinimumDevicePeriod);
DEBUG_PRINT_HR(hr);
Expand All @@ -158,7 +158,7 @@ HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient<TBase>::GetDevicePeriod(REFERE
template<typename TBase>
HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient<TBase>::Start()
{
rslog::info_ts() << this->GetDeviceId() << " " __FUNCTION__ << std::endl;
rslog::info_ts() << this->GetDeviceId() << " " << __FUNCTION__ << std::endl;

HRESULT hr = m_RealAudioClient.Start();
DEBUG_PRINT_HR(hr);
Expand All @@ -169,7 +169,7 @@ HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient<TBase>::Start()
template<typename TBase>
HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient<TBase>::Stop()
{
rslog::info_ts() << this->GetDeviceId() << " " __FUNCTION__ << std::endl;
rslog::info_ts() << this->GetDeviceId() << " " << __FUNCTION__ << std::endl;

HRESULT hr = m_RealAudioClient.Stop();
DEBUG_PRINT_HR(hr);
Expand All @@ -180,7 +180,7 @@ HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient<TBase>::Stop()
template<typename TBase>
HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient<TBase>::Reset()
{
rslog::info_ts() << this->GetDeviceId() << " " __FUNCTION__ << std::endl;
rslog::info_ts() << this->GetDeviceId() << " " << __FUNCTION__ << std::endl;

HRESULT hr = m_RealAudioClient.Reset();
DEBUG_PRINT_HR(hr);
Expand All @@ -191,7 +191,7 @@ HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient<TBase>::Reset()
template<typename TBase>
HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient<TBase>::SetEventHandle(HANDLE eventHandle)
{
rslog::info_ts() << this->GetDeviceId() << " " __FUNCTION__ << std::endl;
rslog::info_ts() << this->GetDeviceId() << " " << __FUNCTION__ << std::endl;

HRESULT hr = m_RealAudioClient.SetEventHandle(eventHandle);
DEBUG_PRINT_HR(hr);
Expand All @@ -202,7 +202,7 @@ HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient<TBase>::SetEventHandle(HANDLE
template<typename TBase>
HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient<TBase>::GetService(REFIID riid, void **ppv)
{
rslog::info_ts() << this->GetDeviceId() << " " __FUNCTION__ << " - riid: " << riid << std::endl;
rslog::info_ts() << this->GetDeviceId() << " " << __FUNCTION__ << " - riid: " << riid << std::endl;

if (riid == __uuidof(IAudioCaptureClient))
{
Expand Down Expand Up @@ -274,7 +274,7 @@ DebugWrapperAudioClient2<TBase>::~DebugWrapperAudioClient2()
template<typename TBase>
HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient2<TBase>::QueryInterface(REFIID riid, void **ppvObject)
{
rslog::info_ts() << this->GetDeviceId() << " " __FUNCTION__ << " riid: " << riid << std::endl;
rslog::info_ts() << this->GetDeviceId() << " " << __FUNCTION__ << " riid: " << riid << std::endl;

if (!ppvObject)
{
Expand All @@ -297,7 +297,7 @@ HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient2<TBase>::QueryInterface(REFIID
template<typename TBase>
HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient2<TBase>::IsOffloadCapable(AUDIO_STREAM_CATEGORY Category, BOOL *pbOffloadCapable)
{
rslog::info_ts() << this->GetDeviceId() << " " __FUNCTION__ << std::endl;
rslog::info_ts() << this->GetDeviceId() << " " << __FUNCTION__ << std::endl;

HRESULT hr = this->m_RealAudioClient.IsOffloadCapable(Category, pbOffloadCapable);
DEBUG_PRINT_HR(hr);
Expand All @@ -308,7 +308,7 @@ HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient2<TBase>::IsOffloadCapable(AUDI
template<typename TBase>
HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient2<TBase>::SetClientProperties(const AudioClientProperties *pProperties)
{
rslog::info_ts() << this->GetDeviceId() << " " __FUNCTION__ << std::endl;
rslog::info_ts() << this->GetDeviceId() << " " << __FUNCTION__ << std::endl;

HRESULT hr = this->m_RealAudioClient.SetClientProperties(pProperties);
DEBUG_PRINT_HR(hr);
Expand All @@ -319,7 +319,7 @@ HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient2<TBase>::SetClientProperties(c
template<typename TBase>
HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient2<TBase>::GetBufferSizeLimits(const WAVEFORMATEX *pFormat, BOOL bEventDriven, REFERENCE_TIME *phnsMinBufferDuration, REFERENCE_TIME *phnsMaxBufferDuration)
{
rslog::info_ts() << this->GetDeviceId() << " " __FUNCTION__ << std::endl;
rslog::info_ts() << this->GetDeviceId() << " " << __FUNCTION__ << std::endl;

HRESULT hr = this->m_RealAudioClient.GetBufferSizeLimits(pFormat, bEventDriven, phnsMinBufferDuration, phnsMaxBufferDuration);
DEBUG_PRINT_HR(hr);
Expand All @@ -345,7 +345,7 @@ DebugWrapperAudioClient3::~DebugWrapperAudioClient3()

HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient3::QueryInterface(REFIID riid, void **ppvObject)
{
rslog::info_ts() << this->GetDeviceId() << " " __FUNCTION__ << " riid: " << riid << std::endl;
rslog::info_ts() << this->GetDeviceId() << " " << __FUNCTION__ << " riid: " << riid << std::endl;

if (!ppvObject)
{
Expand All @@ -367,7 +367,7 @@ HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient3::QueryInterface(REFIID riid,

HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient3::GetSharedModeEnginePeriod(const WAVEFORMATEX *pFormat, UINT32 *pDefaultPeriodInFrames, UINT32 *pFundamentalPeriodInFrames, UINT32 *pMinPeriodInFrames, UINT32 *pMaxPeriodInFrames)
{
rslog::info_ts() << this->GetDeviceId() << " " __FUNCTION__ << std::endl;
rslog::info_ts() << this->GetDeviceId() << " " << __FUNCTION__ << std::endl;

HRESULT hr = m_RealAudioClient.GetSharedModeEnginePeriod(pFormat, pDefaultPeriodInFrames, pFundamentalPeriodInFrames, pMinPeriodInFrames, pMaxPeriodInFrames);
DEBUG_PRINT_HR(hr);
Expand All @@ -377,7 +377,7 @@ HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient3::GetSharedModeEnginePeriod(co

HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient3::GetCurrentSharedModeEnginePeriod(WAVEFORMATEX **ppFormat, UINT32 *pCurrentPeriodInFrames)
{
rslog::info_ts() << this->GetDeviceId() << " " __FUNCTION__ << std::endl;
rslog::info_ts() << this->GetDeviceId() << " " << __FUNCTION__ << std::endl;

HRESULT hr = m_RealAudioClient.GetCurrentSharedModeEnginePeriod(ppFormat, pCurrentPeriodInFrames);
DEBUG_PRINT_HR(hr);
Expand All @@ -387,7 +387,7 @@ HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient3::GetCurrentSharedModeEnginePe

HRESULT STDMETHODCALLTYPE DebugWrapperAudioClient3::InitializeSharedAudioStream(DWORD StreamFlags, UINT32 PeriodInFrames, const WAVEFORMATEX *pFormat, LPCGUID AudioSessionGuid)
{
rslog::info_ts() << this->GetDeviceId() << " " __FUNCTION__ << std::endl;
rslog::info_ts() << this->GetDeviceId() << " " << __FUNCTION__ << std::endl;

HRESULT hr = m_RealAudioClient.InitializeSharedAudioStream(StreamFlags, PeriodInFrames, pFormat, AudioSessionGuid);
DEBUG_PRINT_HR(hr);
Expand Down
Loading
Loading