[MPlayer-dev-eng] [PATCH] Add audio support for sndio API.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Tue Dec 17 20:28:31 CET 2013

On Thu, Dec 12, 2013 at 10:06:31AM +0100, Alexandre Ratchov wrote:
> On Wed, Dec 11, 2013 at 09:39:55AM +0100, Reimar Döffinger wrote:
> >
> > Then at least we wouldn't just hang but could get some message to
> > the user and/or drop the data to continue playback without audio.
> Sorry, I failed to understand how to continue after a write error.
> I couldn't find examples either, the few backends I tried didn't
> handle it:
> alsa: video hangs
> oss: video hangs
> pulse: process loops displaing an error message
> jack: process gets SIGPIPE and terminates
> FWIW, I prodiced write errors by disconnecting the usb audio device
> in use (alsa or oss) or by terminating the server process (pulse or
> jack).

Sorry, I wasn't really expecting it to work without further changes.
Being able to reliably detect the error would be a first step.
Though it might be possible to extend the MSGTR_AudioDeviceStuck case.
Either way, I did make some progress.
I noticed that "/etc/rc.d/sndio stop" actually doesn't work either,
but hangs for a long time and then says "failed".
And sorry, but for this I don't take the VM excuse, a server
that doesn't manage to terminate itself is just bad code.
However after manually killing the server, -ao sndio suddenly works.
No idea how or why so far.
I also didn't manage to test for the small issues I expect so far.

More information about the MPlayer-dev-eng mailing list