4 <title>libao - function - ao_default_driver_id
</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_default_driver_id
</h1>
18 <p><i>declared in
"ao/ao.h";
</i></p>
20 <p>Returns the ID number of the default live output driver.
21 If the
<a href=
"ao_conf.html">configuration files
</a> specify a
22 default driver, its ID is returned, otherwise the library tries to
23 pick a live output driver that will work on the host platform.
26 <table border=
0 color=black cellspacing=
0 cellpadding=
7>
30 int ao_default_driver_id();
36 <h3>Return Values
</h3>
38 <li>a non-negative value is the ID number of the default driver.
</li>
40 <li>-
1 indicates failure to find a usable audio output device.
</li>
45 <p>If no default device is available, you may still use the null device
46 to test your application.
</p>
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>