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

@ -552,7 +552,7 @@ impl Device {
}
}
fn data_flow(&self) -> EDataFlow {
pub(crate) fn data_flow(&self) -> EDataFlow {
let endpoint = Endpoint::from(self.device as *const _);
endpoint.data_flow()
}