4 <title>libao - datatype - ao_info
</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>
18 <p><i>declared in
"ao/ao.h";
</i></p>
20 <p>This structure describes the attributes of an output driver.
23 <table border=
0 width=
100% color=black cellspacing=
0 cellpadding=
7>
26 <pre><b>typedef struct {
27 int type; /* live output or file output? */
28 char *name; /* full name of driver */
29 char *short_name; /* short name of driver */
30 char *comment; /* driver comment */
31 int preferred_byte_format;
40 <h3>Relevant Struct Members
</h3>
43 <dd>The output type of the driver:
45 <li>AO_TYPE_LIVE - Live output.
</li>
46 <li>AO_TYPE_FILE - File output.
</li>
50 <dd>A longer name for the driver which may contain whitespace, but no
51 newlines. It is useful for telling users what output driver is in use.
</dd>
52 <dt><i>short_name
</i></dt>
53 <dd>A short identifier for the driver. The short name contains only
54 alphanumeric characters, and no whitespace. It is used to look up the driver
55 ID number using
<a href=
"ao_driver_id.html">ao_driver_id()
</a>.
</dd>
56 <dt><i>preferred_byte_format
</i></dt>
57 <dd>Specifies the preferred ordering of the sample bytes. Using the driver
58 with this byte format usually results in slightly less memory usage and
59 slightly less CPU usage because a swap buffer will not be needed.
61 <a href=
"ao_sample_format.html">ao_sample_format
</a> for a list of
64 <dt><i>priority
</i></dt>
65 <dd>A positive integer ranking how likely it is for this driver to be
66 the default. The default driver will be a functioning driver with
67 highest priority. See the
<a href=
"drivers.html">drivers document
</a>
68 for more explanation.
</dd>
69 <dt><i>comment
</i></dt>
70 <dd>Pointer to a driver comment string (possibly
<tt>NULL
</tt>). It may
71 contain newlines.
</dd>
72 <dt><i>options
</i></dt>
73 <dd>An array of strings which list the option keys accepted by this
75 <dt><i>option_count
</i></dt>
76 <dd>Number of strings in
<tt>options
</tt> array.
</dd>
81 <table border=
0 width=
100%
>
83 <td><p class=tiny
>copyright
© 2001-
2003 Stan Seibert
</p></td>
84 <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>
86 <td><p class=tiny
>libao documentation
</p></td>
87 <td align=right
><p class=tiny
>libao version
0.8.5 -
20040312</p></td>