4 <title>libao - datatype - ao_sample_format
</title>
5 <link rel=stylesheet
href=
"style.css" type=
"text/css">
8 <body bgcolor=white text=black
link=
"#5555ff" alink=
"#5555ff" vlink=
"#5555ff">
9 <table border=
0 width=
100%
>
11 <td><p class=tiny
>libao documentation
</p></td>
12 <td align=right
><p class=tiny
>libao version
0.8.5 -
20040312</p></td>
16 <h1>ao_sample_format
</h1>
18 <p><i>declared in
"ao/ao.h";
</i></p>
20 <p>This structure describes the format of audio samples.
23 <table border=
0 width=
100% color=black cellspacing=
0 cellpadding=
7>
26 <pre><b>typedef struct {
27 int bits; /* bits per sample */
28 int rate; /* samples per second (in a single channel) */
29 int channels; /* number of audio channels */
30 int byte_format; /* Byte ordering in sample, see constants below */
31 } ao_sample_format;
</b></pre>
36 <h3>Relevant Struct Members
</h3>
38 <dt><i>byte_format
</i></dt>
39 <dd>Specifies the ordering of the sample bytes. The value of this member is ignored when samples have only
8 bits. Use the following constants:
41 <li>AO_FMT_LITTLE - Samples are in little-endian order.
</li>
42 <li>AO_FMT_BIG - Samples are in big-endian order.
</li>
43 <li>AO_FMT_NATIVE - Samples are in the native ordering of the computer.
</li>
50 <table border=
0 width=
100%
>
52 <td><p class=tiny
>copyright
© 2001-
2003 Stan Seibert
</p></td>
53 <td align=right
><p class=tiny
><a href=
"http://www.xiph.org/">xiph.org
</a><br><a href=
"mailto:volsung@xiph.org">volsung@xiph.org
</a></p></td>
55 <td><p class=tiny
>libao documentation
</p></td>
56 <td align=right
><p class=tiny
>libao version
0.8.5 -
20040312</p></td>