[vorbis-dev] building under NetBSD and using /dev/audio

Jeremy C. Reed reed at reedmedia.net
Tue Feb 27 15:45:14 PST 2001



I am using NetBSD 1.5.1_ALPHA (i386). I have libao-0.6.0,
libvorbis-1.0beta4, libogg-1.0beta4 and vorbis-tools-1.0beta4.

My sound works. I am able to use a .ogg file by using ogg123 to create a
.wav file and playing it with splay. (splay uses /dev/audio.)

How can I modify ogg123 (or liba0) so I can use /dev/audio as the default
sound device?

Or maybe it would be better to add a new device (for ao_get_driver_id) so
I can use /dev/audio.

I did try patching libao's src/plugins/oss/ao_oss.c to use /dev/audio
instead of /dev/dsp. (It seems like this /dev/dsp should not be hardcoded
in.)

But this made no difference. "oss" appears to not be used in the first
place -- ogg123 reports: "No such device oss." In addition, ogg123 is
using null as the default: "Device:   Null output".

Also, I do not have any liboss files.

 rainier:~/src/ogg/libao-0.6.0$ ls -lt /usr/local/lib/ao/    
 total 10
 -rwxr-xr-x  1 root  wheel   698 Feb 27 14:27 libesd.la
 lrwxr-xr-x  1 root  wheel    13 Feb 27 14:27 libesd.so -> libesd.so.0.0
 lrwxr-xr-x  1 root  wheel    13 Feb 27 14:27 libesd.so.0 -> libesd.so.0.0
 -rwxr-xr-x  1 root  wheel  3698 Feb 27 14:27 libesd.so.0.0

I did see a July posting in regards to patching for NetBSD, but it doesn't
seem applicable now, because the files are in different places and it
looks like a lot has changed.

If you are interested or want to look at my examples or previous
discussion on this, please see:
 http://www.xiph.org/archives/vorbis/0283.html
 http://www.xiph.org/archives/vorbis/0287.html
 http://www.xiph.org/archives/vorbis/0289.html

Any suggestions on how I can get ogg123 to use my /dev/audio device so I
can directly play .ogg files without converting to wave files first (and
then using a different player)?

Thanks,

   Jeremy C. Reed
   http://www.reedmedia.net/

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list