| 1 | <html> |
| 2 | |
| 3 | <head> |
| 4 | <title>libao - function - ao_append_global_option</title> |
| 5 | <link rel=stylesheet href="style.css" type="text/css"> |
| 6 | </head> |
| 7 | |
| 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 1.2.2 - 20161114</p></td> |
| 13 | </tr> |
| 14 | </table> |
| 15 | |
| 16 | <h1>ao_append_option</h1> |
| 17 | |
| 18 | <p><i>declared in "ao/ao.h";</i></p> |
| 19 | |
| 20 | <p>Append a key-value pair to the internal linked list of global |
| 21 | options obeyed by libao itself, as well as passed to any driver in |
| 22 | use. The key and value strings are duplicated into newly allocated |
| 23 | memory, so the calling function retains ownership of the string |
| 24 | parameters. |
| 25 | |
| 26 | <br><br> |
| 27 | <table border=0 color=black cellspacing=0 cellpadding=7> |
| 28 | <tr bgcolor=#cccccc> |
| 29 | <td> |
| 30 | <pre><b> |
| 31 | int ao_append_global_option(const char *key, const char *value); |
| 32 | </b></pre> |
| 33 | </td> |
| 34 | </tr> |
| 35 | </table> |
| 36 | |
| 37 | <h3>Parameters</h3> |
| 38 | <dl> |
| 39 | <dt><i>key</i></dt> |
| 40 | <dd>A string holding the option key.</dd> |
| 41 | <dt><i>value</i></dt> |
| 42 | <dd>A string holding the option value.</dd> |
| 43 | </dl> |
| 44 | |
| 45 | <h3>Return Values</h3> |
| 46 | <blockquote> |
| 47 | <li>1 indicates success.</li> |
| 48 | |
| 49 | <li>0 indicates memory allocation failure.</li> |
| 50 | </blockquote> |
| 51 | <p> |
| 52 | |
| 53 | <br><br> |
| 54 | <hr noshade> |
| 55 | <table border=0 width=100%> |
| 56 | <tr valign=top> |
| 57 | <td><p class=tiny>copyright © 2001-2003 Stan Seibert, 2010-2016 Monty</p></td> |
| 58 | <td align=right><p class=tiny><a href="http://www.xiph.org/">xiph.org</a><br><a href="mailto:[email protected]">[email protected]</a></p></td> |
| 59 | </tr><tr> |
| 60 | <td><p class=tiny>libao documentation</p></td> |
| 61 | <td align=right><p class=tiny>libao version 1.2.2 - 20161114</p></td> |
| 62 | </tr> |
| 63 | </table> |
| 64 | |
| 65 | </body> |
| 66 | |
| 67 | </html> |