Sorry, replying to my own post.
On 8/15/2004 3:38 PM, David George wrote:
> Currently if WriteAudio fails it closes pcm_handle. This patch adds
> the ability to try to open an audio file handle again. If the re-open
> fails it will then then return the same as it previously did. This
> was discovered when I was troubleshooting audio problems on an HDTV
> stream. AudioOutputAlsa::Reconfigure was reworked a little to support
> this.
I should mention that I was getting broken pipe errors occasionally on
the HDTV audio. With this patch I now reopen the alsa device and
everything continues on with only a minor audio glitch. Previously the
audio would just stop playing and I would see video, but hear no audio.
If we immediately get another error just return as before.
> Currently if the audiolen was the same as the fragment size the audio
> thread would sit there waiting for more data. I didn't really see the
> point in waiting so when there are 4096 bytes waiting to be sent, send
> it.
Basically seeing these messages:
audio waiting for buffer to fill: have 4096 want 4096