diff --git a/Cargo.toml b/Cargo.toml index 5a02896e..93a9ad19 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,6 +26,7 @@ itertools = "0.11" [features] audio-dump = [] +vpio-forcelist = [] gecko-in-tree = ["cubeb-backend/gecko-in-tree"] # Workaround for https://github.com/rust-lang/cargo/issues/6745 to allow this diff --git a/src/backend/mod.rs b/src/backend/mod.rs index e320d020..b5bdd8e7 100644 --- a/src/backend/mod.rs +++ b/src/backend/mod.rs @@ -3266,6 +3266,7 @@ impl<'ctx> CoreStreamData<'ctx> { } #[allow(non_upper_case_globals)] + #[cfg(feature = "vpio-forcelist")] fn should_force_vpio_for_input_device(id: AudioDeviceID) -> bool { assert!(id != kAudioObjectUnknown); debug_assert_running_serially(); @@ -3283,6 +3284,11 @@ impl<'ctx> CoreStreamData<'ctx> { } } + #[cfg(not(feature = "vpio-forcelist"))] + fn should_force_vpio_for_input_device(_id: AudioDeviceID) -> bool { + false + } + fn should_block_vpio_for_device_pair( &self, in_device: &device_info,