- Added tests (using xcode)
- Added a define to enable callback-based audio I/O instead of using actual audio devices
- Fixed a crash on Windows when there's no access to the microphone
- Misc fixes
This commit is contained in:
Grishka
2018-09-01 01:59:09 +03:00
parent 31fe4afdd0
commit 64f14585e7
18 changed files with 1394 additions and 185 deletions

View File

@@ -321,6 +321,8 @@ DWORD WINAPI AudioInputWASAPI::StartThread(void* arg) {
}
void AudioInputWASAPI::RunThread() {
if(failed)
return;
SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_HIGHEST);
HANDLE waitArray[]={shutdownEvent, streamSwitchEvent, audioSamplesReadyEvent};