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:
parent
be54ffff09
commit
dcabad105b
3 changed files with 14 additions and 3 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue