Recognizes if input is ogg or not.
[xiph.git] / ao / doc / ao_sample_format.html
blob81c0ac563ee13a411cb1b1043c61fb6f8989d607
1 <html>
3 <head>
4 <title>libao - datatype - ao_sample_format</title>
5 <link rel=stylesheet href="style.css" type="text/css">
6 </head>
8 <body bgcolor=white text=black link="#5555ff" alink="#5555ff" vlink="#5555ff">
9 <table border=0 width=100%>
10 <tr>
11 <td><p class=tiny>libao documentation</p></td>
12 <td align=right><p class=tiny>libao version 0.8.5 - 20040312</p></td>
13 </tr>
14 </table>
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.
22 <br><br>
23 <table border=0 width=100% color=black cellspacing=0 cellpadding=7>
24 <tr bgcolor=#cccccc>
25 <td>
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>
32 </td>
33 </tr>
34 </table>
36 <h3>Relevant Struct Members</h3>
37 <dl>
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:
40 <ul>
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>
44 </ul>
45 </dd>
46 </dl>
48 <br><br>
49 <hr noshade>
50 <table border=0 width=100%>
51 <tr valign=top>
52 <td><p class=tiny>copyright &copy; 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>
54 </tr><tr>
55 <td><p class=tiny>libao documentation</p></td>
56 <td align=right><p class=tiny>libao version 0.8.5 - 20040312</p></td>
57 </tr>
58 </table>
60 </body>
62 </html>