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

Reimar Döffinger Reimar.Doeffinger at gmx.de
Wed Dec 11 09:39:55 CET 2013


On 10.12.2013, at 23:45, Alexandre Ratchov <alex at caoua.org> wrote:
> On Mon, Dec 09, 2013 at 11:11:18PM +0100, Reimar Döffinger wrote:
>> 
>> The no sound issue was a VirtualBox misconfiguration.
>> So -ao oss now works perfectly, but -ao sndio only hangs
>> without even making a beep (though accepting some data
>> at first, around 40k of 80k offered).
> 
> Virtual machines are known to have broken sound on OpenBSD :(

Problem is, sound isn't broken, OSS works fine.
If OSS can work, why would sndio just hang?
I also couldn't find a way to get an error message to the user in case something is wrong, for example the documentation says that in case of error sio_write returns 0, so it is not even possible to detect errors?!
Why in all the world doesn't it use -1 to indicate an error like write()?
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.


More information about the MPlayer-dev-eng mailing list