Use output.alsa in unbuffered mode. To prevent scratching sounds on start (sound devices buffer is not empty on start) do system("aplay -d 1 -q silence.wav") at the beginning of your script. It replaces the buffer remnants witch silence.
Use output.alsa in unbuffered mode. To prevent scratching sounds on start (sound devices buffer is not empty on start) do system("aplay -d 1 -q silence.wav") at the beginning of your script. It replaces the buffer remnants witch silence.