From 5969b8f34bfbe616c8d7f466d202c2acbc66fbad Mon Sep 17 00:00:00 2001 From: Paul Dino Jones Date: Sun, 19 Jan 2025 09:57:23 -0500 Subject: [PATCH] fixed sound readme again --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 787e9e6..e2eff44 100644 --- a/README.md +++ b/README.md @@ -79,9 +79,9 @@ pactl list sinks | grep -E -i 'index:|name:' -A 4 ``` One can generate sample sine waves at specific frequency on a specific channel on a specific sound card with this command (change -d to the Name of your desired target card and change 440 to any frequency) ``` -ffmpeg -f lavfi -i "sine=f=440" -af "pan=7.1|c1=c0,surround=level_out=10" -f wav pipe:1 | paplay --no-remap --no-remix -d alsa_output.pci-0000_00_1b.0.analog-stereo -n "Monocoque" --stream-name="Haptic Test" +ffmpeg -f lavfi -i "sine=f=440" -af "pan=7.1|c1=c0" -f wav pipe:1 | paplay --no-remap --no-remix -d alsa_output.pci-0000_00_1b.0.analog-stereo --volume=65536 -n "Monocoque" --stream-name="Haptic Test" ``` -(the -n and --stream-name are optional but it helps you identify the stream in pavucontrol) +(BE CAREFUL!!! AS THIS SETS THE MAXIMUM STREAM VOLUME!!! the -n and --stream-name are optional but it helps you identify the stream in pavucontrol) The channel map from the pactl command is the order of channels. Change c1 in this above command to the desired output channel. The effects generated by monocoque should match the effects generated by this ffmpeg command. The frequency will differ slightly due to having to [fit in the buffer size](https://stackoverflow.com/questions/40078417/how-to-calculate-minimum-cycles-of-sine-wave-to-have-integer-n-cycles-in-a-buffe)