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

Alexandre Ratchov alex at caoua.org
Tue Dec 10 23:45:33 CET 2013

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 :(
There's a experimental port of sndio to linux, it seems more
reliable for testing audio-specific bits:

wget http://www.sndio.org/sndio-0.0.3.tar.gz
tar -xzvf sndio-0.0.3.tar.gz
cd sndio-0.0.3
sudo make install
sudo ldconfig
sudo mkdir /var/run/sndiod
sudo useradd -r -g audio -s /sbin/nologin -d /var/run/sndiod sndiod

Then, stop any audio program (to release the hardware) and run:

sudo sndiod -dd

If you think sudo is scary, all this stuff can run as regular user
as well, provided that mplayer uses the right -L, -I compiler
options and LD_LIBRARY_PATH environment variable. At this point
mplayer is supposed to work with sndio.

Then kill sndiod process, restart your apps, and uninstall all

sudo make uninstall
sudo userdel sndiod
sudo rmdir /var/run/sndiod

Let me know if you need more information. And thank for your help
for the ao

-- Alexandre

More information about the MPlayer-dev-eng mailing list