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_S32_LE sample format

32 bit signed little endian sample format


This format is similar to the AFMT_S32_BE format but with different endianess. This is the native 32 bit sample format (signed int) in the wintel architecture. It's also the most common high resolution format supported by audio devices.

The AFMT_S32_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 first byte contains the least significant byte and the fourth one contains the 8 most significant bits. This is somehow uncomfortable to do in application. For this reason it's recommended to use the AFMT_S32_NE format instead.

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