search for: afmt_s16_l

Displaying 8 results from an estimated 8 matches for "afmt_s16_l".

Did you mean: afmt_s16_le
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's may also require this be defined.. --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a m...
2004 Aug 06
2
Difficulties with Ices2
...nning a playlist through Ices and Icecast... I have run into difficulty running a live stream through the soundcard, however... The following is the log when I attempt to run ices ices-mylive.xml: INFO ices-core/main ices started... EROR input-oss/oss_open_module Couldn't set sample format to AFMT_S16_LE EROR input/input_loop Couldn't initialise input module "oss" INFO ices-core/main Shutdown complete Contents of the ices-mylive.xml: <?xml version="1.0"?> <ices> <background>0</background> <!-- run in background? (unimplemented) --> &l...
2000 Sep 05
1
[kcarnold@xiph.org: [xiph-cvs] cvs commit: vorbis/vorbis-tools/libao ao_alsa.c ao_oss.c audio_out.c audio_out.h]
...vorbis-tools/libao/ao_oss.c,v retrieving revision 1.1.4.1 retrieving revision 1.1.4.2 diff -u -r1.1.4.1 -r1.1.4.2 --- ao_oss.c 2000/08/31 08:05:48 1.1.4.1 +++ ao_oss.c 2000/09/05 21:38:48 1.1.4.2 @@ -120,8 +120,8 @@ { case 8: tmp = AFMT_S8; break; - case 16: tmp = AFMT_S16_LE; - break; + case 16: tmp = ao_is_big_endian() ? AFMT_S16_BE : AFMT_S16_LE; + break; default:fprintf(stderr,"libao - Unsupported number of bits: %d.", bits); goto ERR; 1.4.2.1 +11 -0 vorbis/vorbis-tools/libao/audio_...
2004 Aug 06
1
[PATCH] Re: Decoding .spx with 1.0 on ppc produces noise!
...nt to the list will be ignored/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...
2004 Aug 06
0
Difficulties with Ices2
...cecast... > I have run into difficulty running a live stream through the soundcard, > however... > > The following is the log when I attempt to run ices ices-mylive.xml: > > INFO ices-core/main ices started... > EROR input-oss/oss_open_module Couldn't set sample format to AFMT_S16_LE > EROR input/input_loop Couldn't initialise input module "oss" > INFO ices-core/main Shutdown complete It's saying it failed to initialise the driver. This maybe due to some limitation of the hardware/driver with respect to the specified samplerate. Try 11025 or some othe...
2007 Dec 01
1
OpenBSD related patches
Hello, list ! Here is diff of changes, i had to make to get swfdec running on OpenBSD 4.2-current. Regards Valery. P.S. Please cc me, i am not subscribed to the list -------------- next part -------------- A non-text attachment was scrubbed... Name: swfdec.diff Type: application/octet-stream Size: 11628 bytes Desc: not available Url :
2007 Jul 16
0
configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec_playback_oss.c
...sound, SwfdecAudio *audio) +{ + GIOChannel *channel; + Stream *stream; + guint rate; + int dsp_fd, ret, format, channels, fragsize; + + dsp_fd = open("/dev/dsp", O_WRONLY); + if (dsp_fd == -1) { + g_printerr ("Failed to open /dev/dsp\n"); + return; + } + + format = AFMT_S16_LE; + ret = ioctl(dsp_fd, SNDCTL_DSP_SETFMT, &format); + if (ret == -1) { + g_printerr ("Failed to set sound format\n"); + close(dsp_fd); + return; + } + + channels = 2; + ret = ioctl(dsp_fd, SNDCTL_DSP_CHANNELS, &channels); + if (ret == -1) { + g_printerr ("F...
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