Skip to content

Commit aafcb2a

Browse files
authored
Add support for Virtual Audio Cable (#2483)
1 parent 2f36ab2 commit aafcb2a

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

alvr/audio/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ static VIRTUAL_MICROPHONE_PAIRS: Lazy<HashMap<&str, &str>> = Lazy::new(|| {
3434
("VoiceMeeter Input", "VoiceMeeter Output"),
3535
("VoiceMeeter Aux Input", "VoiceMeeter Aux Output"),
3636
("VoiceMeeter VAIO3 Input", "VoiceMeeter VAIO3 Output"),
37+
("Virtual Cable 1", "Virtual Cable 2"),
3738
]
3839
.into_iter()
3940
.collect()
@@ -148,6 +149,9 @@ impl AudioDevice {
148149
MicrophoneDevicesConfig::VoiceMeeterVaio3 => {
149150
microphone_pair_from_sink_name(&host, "VoiceMeeter VAIO3 Input")?
150151
}
152+
MicrophoneDevicesConfig::VAC => {
153+
microphone_pair_from_sink_name(&host, "Virtual Cable 1")?
154+
}
151155
MicrophoneDevicesConfig::Custom { sink, source } => (
152156
device_from_custom_config(&host, &sink)?,
153157
device_from_custom_config(&host, &source)?,

alvr/dashboard/src/dashboard/components/settings_controls/presets/builtin_schema.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ pub fn microphone_schema(devices: Vec<String>) -> PresetSchemaNode {
280280
("VoiceMeeter", "VoiceMeeter"),
281281
("VoiceMeeterAux", "VoiceMeeter Aux"),
282282
("VoiceMeeterVaio3", "VoiceMeeter VAIO3"),
283+
("VAC", "Virtual Audio Cable"),
283284
] {
284285
microhone_options.push(HigherOrderChoiceOption {
285286
display_name: display_name.into(),

alvr/dashboard/src/dashboard/components/setup_wizard.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Make sure you have at least one output audio device.",
113113
ui,
114114
"Software requirements",
115115
if cfg!(windows) {
116-
r"To stream the headset microphone on Windows you need to install VB-Cable or Voicemeeter."
116+
r"To stream the headset microphone on Windows you need to install VB-Cable, Voicemeeter, or Virtual Audio Cable."
117117
} else if cfg!(target_os = "linux") {
118118
r"You need the PipeWire package to be able to stream audio."
119119
} else {

alvr/session/src/settings.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,8 @@ pub enum MicrophoneDevicesConfig {
681681
VoiceMeeterAux,
682682
#[schema(strings(display_name = "VoiceMeeter VAIO3"))]
683683
VoiceMeeterVaio3,
684+
#[schema(strings(display_name = "Virtual Audio Cable"))]
685+
VAC,
684686
Custom {
685687
#[schema(strings(help = "This device is used by ALVR to output microphone audio"))]
686688
sink: CustomAudioDeviceConfig,

0 commit comments

Comments
 (0)