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

Reimar Döffinger Reimar.Doeffinger at gmx.de
Mon Dec 9 23:11:18 CET 2013


On Mon, Dec 09, 2013 at 10:36:22PM +0100, Reimar Döffinger wrote:
> On Mon, Dec 09, 2013 at 10:09:09PM +0100, Reimar Döffinger wrote:
> > On Fri, Dec 06, 2013 at 12:40:20AM -0500, Brad Smith wrote:
> > > Index: Makefile
> > > ===================================================================
> > > --- Makefile	(revision 36533)
> > > +++ Makefile	(working copy)
> > > @@ -572,6 +572,7 @@
> > >                                   libvo/vo_sdl.c                         \
> > >                                   libvo/sdl_common.c
> > >  SRCS_MPLAYER-$(SGIAUDIO)      += libao2/ao_sgi.c
> > > +SRCS_MPLAYER-$(SNDIO)         += libao2/ao_sndio.c
> > >  SRCS_MPLAYER-$(SUNAUDIO)      += libao2/ao_sun.c
> > >  SRCS_MPLAYER-$(SVGA)          += libvo/vo_svga.c
> > >  SRCS_MPLAYER-$(TDFXFB)        += libvo/vo_tdfxfb.c
> > 
> > The patch misses a libao2/audio_out.c chunk, without that the ao
> > is never registered and thus can't be used.
> > I.e. the patch does not work at all as-is.
> 
> After fixing that it still does now work, at all.
> The first sio_write accepts 49920 bytes and then returns 0 forever.
> This OpenBSD 5.4 in VirtualBox.
> Shouldn't be a driver issue since -ao oss works (well, I don't
> actually hear any sound, but at least it doesn't hang).

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).


More information about the MPlayer-dev-eng mailing list