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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user