![]() ![]() Dont put dots in the name variable as the awk command uses regex. pulseaudio_low_latency.sh "name" fragments fragments_sizeįor the first argument, use something in your device name in the command pactl list modules. Read -n 1 -p "Press any key when a sound is playing to test new latency"Įcho "Module not found, please change the name you input" ![]() ![]() Module=$(pactl list modules | awk "/$name/" RS="" ORS="\n\n" | grep Module | head -c 10 | tail -c 2)Įcho "Loading $name module with $frag fragments at $frag_size bytes each"Ĭard_properties="module-udev-detect.discovered=1" \ I looked around for a simple way to lower pulseaudio latency and the only correct way to do so I found was this blog post which inspired me to make this script, it is also where I took the main parameters command, although note that now fragment_size is in bytes, which wasnt the case in the post. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |