morse.d/beepPA.c opens a two-channel (stereo) PulseAudio stream, but then
mis-handles it as if it was just one channel of audio data, including
trying to write a non-mulitple of the (stereo) PulseAudio frame size via
pa_simple_write(). Earlier versions of PulseAudio silently ignored the
discrepancy, but newer versions rightly return a PulseAudio "Invalid
argument" error.
The bug in 'morse':
morse.d/beepPA.c opens a two-channel (stereo) PulseAudio stream, but then
mis-handles it as if it was just one channel of audio data, including
trying to write a non-mulitple of the (stereo) PulseAudio frame size via
pa_simple_write(). Earlier versions of PulseAudio silently ignored the
discrepancy, but newer versions rightly return a PulseAudio "Invalid
argument" error.
Attached patch to morse.d/beepPA.c fixes the bug.
-Kamal