[theora-dev] Player under FreeBSD

Monty xiphmont at xiph.org
Tue Oct 8 19:19:49 PDT 2002

On Wed, Oct 02, 2002 at 11:37:12AM -0400, Arc wrote:
> 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..

That's not portability enhancing code... for one thing, it breaks
FreeBSD on any non-littleendian platform.  AFMT_S16_NE is the correct

What version of OSS is FreeBSD using that is missing this define?
It's part of the spec.

--- >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 at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.

More information about the Theora-dev mailing list