I'm trying to compile opus-tools, but it seems to be relying on OSS:<div><br></div><div><div>gcc -DHAVE_SYS_SOUNDCARD_H -O2 -g -fstack-protector-all -c -Wall -DHAVE_GETOPT_H -DEXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I../../opus/include opus_header.c -o opus_header.o</div>
<div>gcc -DHAVE_SYS_SOUNDCARD_H -O2 -g -fstack-protector-all -c -Wall -DHAVE_GETOPT_H -DEXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I../../opus/include wav_io.c -o wav_io.o</div><div>gcc -DHAVE_SYS_SOUNDCARD_H -O2 -g -fstack-protector-all -c -Wall -DHAVE_GETOPT_H -DEXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I../../opus/include opusenc.c -o opusenc.o</div>
<div>gcc -DHAVE_SYS_SOUNDCARD_H -O2 -g -fstack-protector-all -c -Wall -DHAVE_GETOPT_H -DEXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I../../opus/include resample.c -o resample.o</div><div>gcc opus_header.o wav_io.o opusenc.o resample.o -o opusenc ../../opus/.libs/libopus.a -lm -logg</div>
<div>gcc -DHAVE_SYS_SOUNDCARD_H -O2 -g -fstack-protector-all -c -Wall -DHAVE_GETOPT_H -DEXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I../../opus/include wave_out.c -o wave_out.o</div><div>gcc -DHAVE_SYS_SOUNDCARD_H -O2 -g -fstack-protector-all -c -Wall -DHAVE_GETOPT_H -DEXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX -DFLOATING_POINT -I../../opus/include opusdec.c -o opusdec.o</div>
<div>opusdec.c:65:27: error: sys/soundcard.h: No such file or directory</div><div>opusdec.c: In function ‘out_file_open’:</div><div>opusdec.c:257: error: ‘AFMT_S16_NE’ undeclared (first use in this function)</div><div>opusdec.c:257: error: (Each undeclared identifier is reported only once</div>
<div>opusdec.c:257: error: for each function it appears in.)</div><div>opusdec.c:258: error: ‘SNDCTL_DSP_SETFMT’ undeclared (first use in this function)</div><div>opusdec.c:268: error: ‘SNDCTL_DSP_STEREO’ undeclared (first use in this function)</div>
<div>opusdec.c:281: error: ‘SNDCTL_DSP_SPEED’ undeclared (first use in this function)</div><div>make: *** [opusdec.o] Error 1</div><div><br></div><div><br></div><br><div class="gmail_quote">On Thu, Nov 17, 2011 at 7:57 PM, Gregory Maxwell <span dir="ltr"><<a href="mailto:gmaxwell@gmail.com">gmaxwell@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Thu, Nov 17, 2011 at 10:50 PM, Baek Chang <<a href="mailto:baeksan@ccrma.stanford.edu">baeksan@ccrma.stanford.edu</a>> wrote:<br>
> I just downloaded Opus 0.9.8 and tried opus_demo and it seems to be working<br>
> now. Perhaps my configuration and compile options were unsupported.<br>
> Thanks!<br>
<br>
</div>Opus_demo is really a special utility for testing the library and not<br>
intended general purpose encoding/decoding. E.g. it reads and writes<br>
special bitstreams with extra debugging information which are<br>
unseekable.<br>
<br>
What you probably want to use is opus-tools:<br>
<a href="https://git.xiph.org/?p=users/jm/opus-tools.git" target="_blank">https://git.xiph.org/?p=users/jm/opus-tools.git</a><br>
... which is slowly inching its way towards a first release but is<br>
basically functional now.<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>-baeksanchang<br>
</div>