Implement WASAPI loopback support

This works by detecting output devices in build_input_stream() and
setting the AUDCLNT_STREAMFLAGS_LOOPBACK flag to enable loopback
recording.

closes #251
This commit is contained in:
lucy 2019-10-12 19:02:54 +02:00
parent be54ffff09
commit dcabad105b
3 changed files with 14 additions and 3 deletions

View file

@ -21,6 +21,10 @@ mod device;
mod stream;
/// The WASAPI host, the default windows host type.
///
/// Note: If you use a WASAPI output device as an input device it will
/// transparently enable loopback mode (see
/// https://docs.microsoft.com/en-us/windows/win32/coreaudio/loopback-recording).
#[derive(Debug)]
pub struct Host;