libao documentation | libao version 0.8.5 - 20040312

# ao_sample_format

declared in "ao/ao.h";

This structure describes the format of audio samples.

    typedef struct {
      int bits; /* bits per sample */
      int rate; /* samples per second (in a single channel) */
      int channels; /* number of audio channels */
      int byte_format; /* Byte ordering in sample, see constants below */
    } ao_sample_format;

### Relevant Struct Members

byte_format
  Specifies the ordering of the sample bytes. The value of this member is ignored when samples have only 8 bits. Use the following constants:
  - AO_FMT_LITTLE - Samples are in little-endian order.
  - AO_FMT_BIG - Samples are in big-endian order.
  - AO_FMT_NATIVE - Samples are in the native ordering of the computer.

copyright © 2001-2003 Stan Seibert | xiph.org volsung@xiph.org
libao documentation | libao version 0.8.5 - 20040312