Jeremy C. Reed
2001-Feb-27 15:45 UTC
[vorbis-dev] building under NetBSD and using /dev/audio
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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Jeremy C. Reed
2001-Feb-27 16:05 UTC
[vorbis-dev] building under NetBSD and using /dev/audio
As a followup to my missing oss, I posted information from the build of a clean (unpatched) libao-0.6.0. http://www.reedmedia.net/misc/netbsd/audio/ogg/configure.log http://www.reedmedia.net/misc/netbsd/audio/ogg/config.log http://www.reedmedia.net/misc/netbsd/audio/ogg/make.log http://www.reedmedia.net/misc/netbsd/audio/ogg/make-install.log 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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Jeremy C. Reed
2001-Feb-27 16:33 UTC
[vorbis-dev] building under NetBSD and using /dev/audio
On Tue, 27 Feb 2001, Jeremy C. Reed wrote:> Also, I do not have any liboss files.I now have liboss files. I manually edited the configure script to always: HAVE_OSS_TRUE HAVE_OSS_FALSE='#' My soundcard.h file is at /usr/include/soundcard.h. I then edited src/plugins/oss/ao_oss.c to comment out: ioctl(((ao_oss_internal_t *)state)->fd, SNDCTL_DSP_GETODELAY, &odelay); (because I dont' have any SNDCTL_DSP_GETODELAY defined). And I changed /dev/dsp to /dev/audio, did a make and a make install and now I have: -rwxr-xr-x 1 root wheel 650 Feb 27 16:22 /usr/local/lib/ao/liboss.la lrwxr-xr-x 1 root wheel 13 Feb 27 16:22 /usr/local/lib/ao/liboss.so -> liboss.so.0.0 lrwxr-xr-x 1 root wheel 13 Feb 27 16:22 /usr/local/lib/ao/liboss.so.0 -> liboss.so.0.0 -rwxr-xr-x 1 root wheel 4724 Feb 27 16:22 /usr/local/lib/ao/liboss.so.0.0 But ogg123 (or ao_get_driver_id) still thinks that oss is not a device and is using "null" as the default. I am not sure what to do next to get oss to be a valid ao driver id and use oss with /dev/audio as the default. But I am only four hours into this project ... 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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.