Comment 4 for bug 1461755

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote : fix for morse: pa_simple_write failed

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