fixed sound readme again
This commit is contained in:
parent
3b0d75423f
commit
5969b8f34b
|
|
@ -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)
|
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 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)
|
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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue