summaryrefslogtreecommitdiffstats
path: root/playbook.org
diff options
context:
space:
mode:
authorMohsen Banan <form@mohsen.banan.1.byname.net>2021-11-24 04:56:27 +0000
committerMohsen Banan <form@mohsen.banan.1.byname.net>2021-11-24 04:56:27 +0000
commit2e55503a4929f6c05e85f233161563966d8471ea (patch)
tree86d95210eb88fa2b86558fc9ae6ac62131dd9bf2 /playbook.org
parent0fe2ff0d4131994ec650b3697ccfa092c477a320 (diff)
parentd5170e8cd387f16c97a506b18dbe75ba1828c7e9 (diff)
downloademacsconf-wiki-2e55503a4929f6c05e85f233161563966d8471ea.tar.xz
emacsconf-wiki-2e55503a4929f6c05e85f233161563966d8471ea.zip
Merge branch 'master' of anon_emacsconf:emacsconf-wiki
Diffstat (limited to 'playbook.org')
-rw-r--r--playbook.org29
1 files changed, 28 insertions, 1 deletions
diff --git a/playbook.org b/playbook.org
index 4f99f066..80e3bbf9 100644
--- a/playbook.org
+++ b/playbook.org
@@ -479,4 +479,31 @@ Exceptions:
- Try to record name pronunciation
- Encourage webcam for Q&A, although make it clear that it's totally optional
- Possible picture-in-picture approach to maximize screen real estate
-
+** Experiment with setup to allow MPV / BBB sound isolation
+
+Set MIC and OUTPUT appropriately.
+
+#+begin_src sh :eval no
+MIC=alsa_input.usb-046d_0819_A68D6BE0-02.mono-fallback
+OUTPUT=alsa_output.pci-0000_00_1b.0.analog-stereo
+if [ "$1" == "-u" ]; then
+ pactl unload-module module-loopback
+ pactl unload-module module-null-sink
+else
+ pacmd load-module module-null-sink sink_name=recording sink_properties=device.description=recording channels=2
+ pacmd load-module module-null-sink sink_name=mpv sink_properties=device.description=mpv
+ pacmd load-module module-loopback source=$MIC sink=recording
+ pacmd load-module module-loopback source=mpv.monitor sink=recording
+ pacmd load-module module-loopback source=recording.monitor sink=$OUTPUT
+fi
+#+end_src
+
+You can probably then use =pavucontrol= (choose All Streams instead of
+Applications on the Playback tab) or something like the following to
+redirect the mpv output to the mpv sink.
+
+#+begin_src sh :eval no
+pacmd list-sink-inputs # notice the
+pacmd move-sink-input 1 mpv
+#+end_src
+