1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-16 07:31:16 +02:00

Temporary workaround to provide (only) WASAPI loopback input devices.

This commit is contained in:
lllucius
2013-08-30 04:17:02 +00:00
parent d63709908a
commit 96afea6e4b
3 changed files with 46 additions and 0 deletions

View File

@@ -7,6 +7,10 @@
******************************************************************/
#include "portaudio.h"
#ifdef __WXMSW__
#include "pa_win_wasapi.h"
#endif
#ifdef USE_PORTMIXER
#include "portmixer.h"
#endif
@@ -281,6 +285,10 @@ void DeviceManager::Rescan()
}
if (info->maxInputChannels > 0) {
#ifdef __WXMSW__
if (Pa_GetHostApiInfo(info->hostApi)->type != paWASAPI ||
PaWasapi_IsLoopback(i) > 0)
#endif
AddSources(i, info->defaultSampleRate, &mInputDeviceSourceMaps, 1);
}
}