search for: afmt_s16_n

Displaying 7 results from an estimated 7 matches for "afmt_s16_n".

Did you mean: afmt_s16_ne
2002 Oct 02
1
Player under FreeBSD
Ok here's another one: player_example.c: In function `open_audio': player_example.c:138: `AFMT_S16_NE' undeclared (first use in this function) It worked fine once I switched it from _NE to _LE, this code will help portability: #if defined(__FreeBSD__) # define AFMT_S16_NE AFMT_S16_LE #elif defined(_AIX) || defined(AIX) # define AFMT_S16_NE AFMT_S16_BE #endif I'm not sure what other OS...
2000 Jun 18
3
Compile error
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 --- &gt...
2006 Oct 12
1
Problem with encoding and decoding
...&file); argc--; argv++; }; } card=open("/dev/dsp", O_RDWR, 0); if (card<0) { return false; } else{ channels=1; if (ioctl (card, SNDCTL_DSP_CHANNELS, &channels)==-1) { return false; } format = AFMT_S16_NE; tmp = ioctl (card, SNDCTL_DSP_SETFMT, &format); if (tmp==-1) { return false; } // set speed tmp = 16000; ioctl(card, SNDCTL_DSP_SPEED, &tmp); } /*Create a new encoder state in narrowband mode*/ state = speex_encoder_init(&speex_nb_mode); /*Se...
2004 Aug 06
1
[PATCH] Re: Decoding .spx with 1.0 on ppc produces noise!
...red/filtered. -- Ben Stanley <bds02@uow.edu.au> University of Wollongong --- speex-1.0/src/speexdec.c Fri Mar 21 08:52:39 2003 +++ speex-1.0-works/src/speexdec.c Thu Apr 17 06:39:23 2003 @@ -136,7 +136,7 @@ exit(1); } - format=AFMT_S16_LE; + format=AFMT_S16_NE; if (ioctl(audio_fd, SNDCTL_DSP_SETFMT, &format)==-1) { perror("SNDCTL_DSP_SETFMT"); @@ -612,7 +612,7 @@ } /*Convert to short and save to output file*/ for (i=0;i<frame_size*channels;i++) -...
2004 Aug 06
4
Decoding .spx with 1.0 on ppc produces noise!
Hi, I got my hands on the LCA 2003 CD today and I tried to listen to it on my powerbook running Linux. Instead of getting speech, I got an earfull of noise! Attempting the same experiment on an i386 with the same CD produced understandable speech. It seems that the output routine in speexdec converts the output data to little endian short format, which is incorrect on the ppc architecture. The
2008 Apr 04
0
speexdec 1.2.3
...utput file*/ if (strlen(outFile)==0) { #if defined HAVE_SYS_SOUNDCARD_H int audio_fd, format, stereo; audio_fd=open("/dev/dsp", O_WRONLY); if (audio_fd<0) { perror("Cannot open /dev/dsp"); exit(1); } format=AFMT_S16_NE; if (ioctl(audio_fd, SNDCTL_DSP_SETFMT, &format)==-1) { perror("SNDCTL_DSP_SETFMT"); close(audio_fd); exit(1); } stereo=0; if (*channels==2) stereo=1; if (ioctl(audio_fd, SNDCTL_DSP_STEREO, &stereo)==-1)...
2008 Apr 04
2
speexdec 1.2.3
On Fri, Apr 4, 2008 at 12:19 AM, Jean-Marc Valin <jean-marc.valin at usherbrooke.ca> wrote: > Jahn, Ray (R.) a ?crit : > > > Dear Speex codec community: > > > > I am working on conversion of voice files. I could not figure out how to use speexdec.exe 1.2.3 in piped mode in order to avoid the creation of the potentially large intermediate *.wav or *.pcm files. Any