Open Sound System
OSS 4.x Programmer's Guide

Do you have problems with sound/audio application development? Don't panic! Click here for help!

AFMT_S24_LE sample format

24 bit signed little endian sample format


This format is similar to the AFMT_S24_BE format but with different endianess. This is the native 24 bit sample format (signed int) in the wintel/PC architecture. It's also the 24 bit sample format used in WAV files.

The AFMT_S24_LE formatted data stream should be handled as an array of bytes. The 4 bytes of a 32 bit integer are simply stored so that the least significant byte comes first and the most significant byte is last. This is somehow uncomfortable to do in application. For this reason it's recommended to use the AFMT_S24_NE format instead.

Copyright (C) 4Front Technologies, 2007. All rights reserved.
Back to index OSS web site