Here's the error I get when trying to compile: gcc -O20 -ffast-math -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char -I. -I../include -c ogg123.c ogg123.c: In function `main': ogg123.c:260: `AFMT_S16_NE' undeclared (first use this function) ogg123.c:260: (Each undeclared identifier is reported only once ogg123.c:260: for each function it appears in.) make[2]: *** [ogg123.o] Error 1 It's Debian Linux 2.1r with kernel 2.2.16, and I got the nightly cvs tgz on sunday the 18th. -Sam --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/
On Sun, Jun 18, 2000 at 08:38:59PM -0400, Sam Michaels wrote:> Here's the error I get when trying to compile: > > gcc -O20 -ffast-math -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char -I. -I../include -c ogg123.c > ogg123.c: In function `main': > ogg123.c:260: `AFMT_S16_NE' undeclared (first use this function) > ogg123.c:260: (Each undeclared identifier is reported only once > ogg123.c:260: for each function it appears in.) > make[2]: *** [ogg123.o] Error 1 > > It's Debian Linux 2.1r with kernel 2.2.16, and I got the nightly cvs tgz on sunday the 18th.My bad. Once Monty gives me CVS commit access, I'll get Ogg123 out of the main build, since it's broken on just about anything that is not Linux. Odd that it is broken for your Linux... check /usr/include/linux/soundcard.h and see if that symbol is declared. If I remember correctly, I stole that from mpg123, so it should work anywhere mpg123 works. For my kernel, 2.4.0-test1-ac21 (which is quite stable, btw), it is defined on line 188 of /usr/include/linux/soundcard.h. Kenneth --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/
> ogg123.c: In function `main': > ogg123.c:260: `AFMT_S16_NE' undeclared (first use this function) > ogg123.c:260: (Each undeclared identifier is reported only once > ogg123.c:260: for each function it appears in.) > make[2]: *** [ogg123.o] Error 1 > > It's Debian Linux 2.1r with kernel 2.2.16, and I got the nightly cvs tgz on sunday the 18th. >Do you have kernel headers installed (specifically the OOS driver's includes)? I may need to take vorbis tools aout of main build path for now... It will take a little work to gte it to not try to build on non-OSS and non-Linux boxen. Monty --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/
This may not be the lead that you are looking for but a thing called plib is cross platform as far as sound goes. It includes a few other things but there is a sound package that you may like. It may not offer all that you want though. http://plib.sourceforge.net/ Sorry if I'm wrong. Just thought I'd try. Matt -----Original Message----- From: Kenneth C. Arnold <kcarnold@yahoo.com> To: vorbis-dev@xiph.org <vorbis-dev@xiph.org> Date: Sunday, June 18, 2000 10:23 PM Subject: Re: [vorbis-dev] Compile error>On Sun, Jun 18, 2000 at 07:10:37PM -0700, Ralph Giles wrote: >> On Sun, 18 Jun 2000, Kenneth C. Arnold wrote: >> >> > Vorbize will work fine. Ogg123, OTOH, needs a cross-platform soundoutput>> > library. For the third time, does anyone out there have any good ideas? >> > Preferrably a library with some docs, or one that behaves a lot likeOSS?>> >> I don't know if it's any help, but Aaron Holtzman just added a 'libao' >> module to his ac3 decoder. It does a sort of output-plugin thing, and >> might provide the basics of what you want. I believe xmms does something >> similar. >> >> http://linuxvideo.org/developer/viewcvs.cgi/ac3dec/libao/ > >Thanks -- this is help. I want to avoid xmms plugins because they areglib/gtk.> >> Otherwise I don't know about anything besides the big crossplatform >> libraries like SDL and OpenAL. > >Hmmm... I'd want as much as possible in the CVS repository, and "big" willnot>exactly fit that role... > >Kenneth >(going to sleep now) > > >--- >8 ---- >List archives: http://www.xiph.org/archives/ >Ogg project homepage: http://www.xiph.org/ogg/_________________________________________________________________ SignUp for your FREE email at http://www.2hb.net --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/