[Pianod] libao settings testing
Jimmy Pop
jimmypopali96 at gmail.com
Wed Apr 17 00:43:16 PDT 2013
Starting at pianod-137
I got the folowing to work using the alsa system
player.c changes
in function BarPlayerAACCb
#add definition of ao_option
ao_option *ao_options = NULL;
audioOutDriver = ao_driver_id("alsa");
ao_append_option(&ao_options, "dev", "stereo3");
then later
if ((player->audioOutDevice = ao_open_live (audioOutDriver, &format,
ao_options)) == NULL) ..........
My asound.conf is as follows for reference
#/etc/asound.conf
pcm_slave.eightchannels {
pcm "surround71:Device,0" # or "hw:1,0" for the second
card
channels 8
}
pcm.stereo1 {
type plug
slave.pcm {
type dshare
ipc_key 87882222
slave eightchannels
bindings [ 2 3 ]
}
}
pcm.stereo2 {
type plug
slave.pcm {
type dshare
ipc_key 87882222
slave eightchannels
bindings [ 4 5 ]
}
}
pcm.stereo3 {
type plug
slave.pcm {
type dshare
ipc_key 87882222
slave eightchannels
bindings [ 6 7 ]
}
}
pcm.stereo4 {
type plug
slave.pcm {
type dshare
ipc_key 87882222
slave eightchannels
bindings [ 0 1 ]
}
}
Though through this success, I am having choppy audio now, with a single
stream, or multiple streams with a RPI and this method,
but ao_default_driver_id() streams smoothly
On Tue, Apr 16, 2013 at 2:04 PM, Perette Barella <perette at barella.org>wrote:
> Off-list I got asked about output device selection. I've added libao
> settings to request other devices, but nothing seems to happen on my
> MacBook; I'm not sure if it doesn't work or if the Mac is being "helpful"
> by abstracting speakers/headphones distinction away. Can someone give the
> pianod-aotest.tar.gz a whirl? The relevant pianod commands are:
>
> set audio output driver {driver}
> set audio output device {dev}
> set audio output id {number}
> set audio output server {server}
>
> Related libao documentation:
> http://www.xiph.org/ao/doc/drivers.html
>
> Perette
>
> _______________________________________________
> Pianod mailing list
> Pianod at lists.deviousfish.com
> http://lists.deviousfish.com/listinfo.cgi/pianod-deviousfish.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deviousfish.com/pipermail/pianod-deviousfish.com/attachments/20130417/4715181f/attachment-0002.htm>
More information about the Pianod
mailing list