From ef64aa590a74981947d2eec4cf2ec13932f22974 Mon Sep 17 00:00:00 2001 From: Marcus Tomlinson Date: Wed, 27 Oct 2021 00:26:02 +0100 Subject: [PATCH] WASAPI : Fix Windows <10 build --- RtAudio.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/RtAudio.cpp b/RtAudio.cpp index 60494611..4c5d2174 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -3837,6 +3837,17 @@ if ( objectPtr )\ typedef HANDLE ( __stdcall *TAvSetMmThreadCharacteristicsPtr )( LPCWSTR TaskName, LPDWORD TaskIndex ); +#ifndef __IAudioClient3_INTERFACE_DEFINED__ +MIDL_INTERFACE( "00000000-0000-0000-0000-000000000000" ) IAudioClient3 +{ + virtual HRESULT GetSharedModeEnginePeriod( WAVEFORMATEX*, UINT32*, UINT32*, UINT32*, UINT32* ) = 0; + virtual HRESULT InitializeSharedAudioStream( DWORD, UINT32, WAVEFORMATEX*, LPCGUID ) = 0; +}; +#ifdef __CRT_UUID_DECL +__CRT_UUID_DECL( IAudioClient3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ) +#endif +#endif + //----------------------------------------------------------------------------- // WASAPI dictates stream sample rate, format, channel count, and in some cases, buffer size.