search for: afmt_s16_be

Displaying 2 results from an estimated 2 matches for "afmt_s16_be".

2002 Oct 02
1
Player under FreeBSD
...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 message to 'theora-dev-request@xiph.org' containing only the wor...
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]
...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_out.c Index: audio_out.c ===========================================...