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

Alexandre Ratchov alex at caoua.org
Wed Dec 11 23:03:25 CET 2013


On Wed, Dec 11, 2013 at 09:10:52PM +0100, Reimar Döffinger wrote:
> On Wed, Dec 11, 2013 at 10:31:36AM +0100, Alexandre Ratchov wrote:
> > On Wed, Dec 11, 2013 at 09:39:55AM +0100, Reimar Döffinger wrote:
> > > 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.
> > 
> > no it doesn't. It might work in one particular case, with one
> > device but the openbsd implementatino is broken in thousand of
> > other cases/devices.
> > 
> > > If OSS can work, why would sndio just hang?
> > 
> > probably because nobody uses audio on VMs, so nobody cares about
> > fixing the driver to work with the emulated device.
> 
> Well, but if OSS works, doesn't that mean the driver works?
> At least well enough to play some audio...
> Or does sndio use its completely separate driver?

The driver is the same but sndiod and libossaudio don't use it same
way; most probably the driver returns something inconsistent that's
verified by the sndiod server.

If all this is to test mplayer on OpenBSD, you could use audio
across the network; start "sndiod -dd -L -" on the host (assuming
it's linux) and export "AUDIODEVICE=snd@<host_ip_addr>/0" on the
guest VM.

-- Alexandre


More information about the MPlayer-dev-eng mailing list