[vorbis] libdl and building under NetBSD

Jeremy C. Reed reed at reedmedia.net
Tue Feb 27 14:36:07 PST 2001



On Tue, 27 Feb 2001, Jack Moffitt wrote:

> What you'll need to do is remove -ldl from the Makefile.am or the
> configure.in (it's declared explicitly in one of those).  And that

Thank you Jack. I edited my configure script and now it built (configured
and make) successfully.

But now when I use it I don't hear anything.

  -d, --device=d uses 'd' as an output device
      Possible devices are (some may not be compiled):
      null (output nothing), oss (for Linux and *BSD),
      irix, solaris, wav (write to a .WAV file)

>From the example below it looks like "null" is the default.

 rainier:~/src/ogg/vorbis-tools-1.0beta4$ ogg123 --verbose
 ~/audio/tmbg_older.ogg 
 Playing from file /home/reed/audio/tmbg_older.ogg.
 Device:   Null output
 Author:   Aaron Holtzman <aholtzma at ess.engr.uvic.ca>
 Comments: This plugin does nothing

 Artist: They Might Be Giants
 Title: Older
 Album: Long Tall Weekend

 Bitstream is 2 channel, 44100Hz
 Encoded by: Xiphophorus libVorbis I 20010218

 Time: 01:57.16 [00:00.00] of 01:57.16, Bitrate: 1.9     
 Done.

I was able to successfully build a wave file and play it with splay -- yes
my audio works :)

 rainier:~/audio$ ogg123 --device=wav --verbose ~/audio/tmbg_older.ogg 
 Playing from file /home/reed/audio/tmbg_older.ogg.
 Device:   WAV file output
 Author:   Aaron Holtzman <aholtzma at ess.engr.uvic.ca>
 Comments: Sends output to a .wav file

 Artist: They Might Be Giants
 Title: Older
 Album: Long Tall Weekend

 Bitstream is 2 channel, 44100Hz
 Encoded by: Xiphophorus libVorbis I 20010218

 Time: 01:57.16 [00:00.00] of 01:57.16, Bitrate: 1.9     
 Done.

 rainier:~/audio$ time splay -vv output.wav 
 output.wav: 
 Verbose : 16bits, 44100Hz, Stereo

 real    1m57.208s
 user    0m0.118s
 sys     0m0.410s

I didn't look before, but I see that NetBSD does have a package for
vorbis. But it is old: vorbis_nightly_cvs-20000818. It patches
vorbis-tools/libao/ao_oss.c to use /dev/audio.

I am not sure where it is set to use "null".
I think I should patch libao-0.6.0's src/plugins/oss/ao_oss.c to use
/dev/audio instead of /dev/dsp. So I changed /dev/dsp to /dev/audio.
(I noticed there is no "make clean" so I removed the .lo .o files.)
And I rebuilt and installed libao.

But ogg123 still used "Null output"; so I rebuilt vorbis-tools and it
still used the null. Then I tried:

 $ ogg123 -d oss --verbose ~/audio/tmbg_older.ogg 
 No such device oss

My question is: how can I modify ogg123 to use /dev/audio as the default
device?

I guess I should be asking these questions to the developers list.

Thanks again. I look forward to using ogg123.

   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-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 mailing list