4 <title>libao - function - ao_plugin_set_option
</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_plugin_set_option
</h1>
18 <p><i>declared in
"ao/plugin.h";
</i></p>
20 <p>Set a new option key-value pair for a device. This will only be
22 href=
"ao_plugin_device_init.html">ao_plugin_device_init()
</a> is called.
23 Unrecognized option keys are silently ignored, but invalid option
24 values will cause the function to return a failing error code.
27 <table border=
0 color=black cellspacing=
0 cellpadding=
7>
31 int ao_plugin_set_option(
<a href=
"ao_device.html">ao_device
</a> *device, const char *key, const char *value);
39 <dt><i>device
</i></dt>
40 <dd>Pointer to the device structure.
</dd>
42 <dd>A string holding the option key. The calling function retains ownership
45 <dd>A string holding the option value. The calling function retains ownership
49 <h3>Return Values
</h3>
51 <li>1 indicates success.
</li>
53 <li>0 indicates failure.
<a
54 href=
"ao_plugin_device_clear.html">ao_plugin_device_clear()
</a> should be
55 called to ensure the deallocate of all private data structures.
</li>
61 <table border=
0 width=
100%
>
63 <td><p class=tiny
>copyright
© 2001-
2003 Stan Seibert
</p></td>
64 <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>
66 <td><p class=tiny
>libao documentation
</p></td>
67 <td align=right
><p class=tiny
>libao version
0.8.5 -
20040312</p></td>