use rodio's cpal, use microphone device instead of default, only show supported files in the list, and Linux works now when ran with the included script and Discord set to use the virtual_mic source.

This commit is contained in:
csd4ni3l
2026-01-22 20:06:33 +01:00
parent 9c34ebbff5
commit ea2fa978ca
4 changed files with 23 additions and 76 deletions

8
run_linux.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
pactl load-module module-null-sink sink_name=VirtualMic sink_properties=device.description="Virtual_Microphone"
pactl load-module module-remap-source master=VirtualMic.monitor source_name=VirtualMicSource source_properties=device.description="Virtual_Mic_Source"
PULSE_SINK=VirtualMic cargo run
pactl list modules short | grep "Virtual_Microphone" | cut -f1 | xargs -L1 pactl unload-module
pactl list modules short | grep "Virtual_Mic_Source" | cut -f1 | xargs -L1 pactl unload-module