Browse Source

Fix warning about casting result of GetProcAddress.

tags/5.1.0
Stephen Sinclair 6 years ago
parent
commit
f25f7f23b5
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      RtAudio.cpp

+ 2
- 1
RtAudio.cpp View File

@@ -4997,7 +4997,8 @@ void RtApiWasapi::wasapiThread()
HMODULE AvrtDll = LoadLibrary( (LPCTSTR) "AVRT.dll" );
if ( AvrtDll ) {
DWORD taskIndex = 0;
TAvSetMmThreadCharacteristicsPtr AvSetMmThreadCharacteristicsPtr = ( TAvSetMmThreadCharacteristicsPtr ) GetProcAddress( AvrtDll, "AvSetMmThreadCharacteristicsW" );
TAvSetMmThreadCharacteristicsPtr AvSetMmThreadCharacteristicsPtr =
( TAvSetMmThreadCharacteristicsPtr ) (void(*)()) GetProcAddress( AvrtDll, "AvSetMmThreadCharacteristicsW" );
AvSetMmThreadCharacteristicsPtr( L"Pro Audio", &taskIndex );
FreeLibrary( AvrtDll );
}


Loading…
Cancel
Save