Chris@1
|
1 <html>
|
Chris@1
|
2
|
Chris@1
|
3 <head>
|
Chris@1
|
4 <title>libvorbis - function - vorbis_comment_query</title>
|
Chris@1
|
5 <link rel=stylesheet href="style.css" type="text/css">
|
Chris@1
|
6 </head>
|
Chris@1
|
7
|
Chris@1
|
8 <body bgcolor=white text=black link="#5555ff" alink="#5555ff" vlink="#5555ff">
|
Chris@1
|
9 <table border=0 width=100%>
|
Chris@1
|
10 <tr>
|
Chris@1
|
11 <td><p class=tiny>libvorbis documentation</p></td>
|
Chris@1
|
12 <td align=right><p class=tiny>libvorbis version 1.3.2 - 20101101</p></td>
|
Chris@1
|
13 </tr>
|
Chris@1
|
14 </table>
|
Chris@1
|
15
|
Chris@1
|
16 <h1>vorbis_comment_query</h1>
|
Chris@1
|
17
|
Chris@1
|
18 <p><i>declared in "vorbis/codec.h";</i></p>
|
Chris@1
|
19
|
Chris@1
|
20 <p>This function retrieves a comment string for a given tag in a
|
Chris@1
|
21 <a href="vorbis_comment.html">vorbis_comment</a> structure.</p>
|
Chris@1
|
22
|
Chris@1
|
23 <table border=0 color=black cellspacing=0 cellpadding=7>
|
Chris@1
|
24 <tr bgcolor=#cccccc>
|
Chris@1
|
25 <td>
|
Chris@1
|
26 <pre><b>
|
Chris@1
|
27 extern char *vorbis_comment_query(vorbis_comment *vc, const char *tag, int count);
|
Chris@1
|
28 </b></pre>
|
Chris@1
|
29 </td>
|
Chris@1
|
30 </tr>
|
Chris@1
|
31 </table>
|
Chris@1
|
32
|
Chris@1
|
33 <h3>Parameters</h3>
|
Chris@1
|
34 <dl>
|
Chris@1
|
35 <dt><i>vc</i></dt>
|
Chris@1
|
36 <dd>Pointer to the vorbis_comment structure.</dd>
|
Chris@1
|
37 <dt><i>tag</i></dt>
|
Chris@1
|
38 <dd>Pointer to a null-terminated string of the comment tag to look
|
Chris@1
|
39 for. Tags are compared case-insensitively.</dd>
|
Chris@1
|
40 <dt><i>count</i></dt>
|
Chris@1
|
41 <dd>The index of the comment string to retrieve. A value of 0 indicates
|
Chris@1
|
42 the first comment whose tag matches <i>tag</i>. Use
|
Chris@1
|
43 <a href="vorbis_comment_query_count.html">vorbis_comment_query_count</a>
|
Chris@1
|
44 to determine the number of matching comments.</dd>
|
Chris@1
|
45 </dl>
|
Chris@1
|
46
|
Chris@1
|
47
|
Chris@1
|
48 <h3>Return Values</h3>
|
Chris@1
|
49 <blockquote>
|
Chris@1
|
50 <li>A pointer to the comment string. The underlying buffer is owned by
|
Chris@1
|
51 the vorbis_comment structure.</li>
|
Chris@1
|
52 <li>NULL on a nonexistent tag or if <i>count</i> is greater than or
|
Chris@1
|
53 equal to the number of matching comments.</li>
|
Chris@1
|
54 </blockquote>
|
Chris@1
|
55 <p>
|
Chris@1
|
56
|
Chris@1
|
57 <br><br>
|
Chris@1
|
58 <hr noshade>
|
Chris@1
|
59 <table border=0 width=100%>
|
Chris@1
|
60 <tr valign=top>
|
Chris@1
|
61 <td><p class=tiny>copyright © 2010 Xiph.Org</p></td>
|
Chris@1
|
62 <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/vorbis/index.html">Ogg Vorbis</a></p></td>
|
Chris@1
|
63 </tr><tr>
|
Chris@1
|
64 <td><p class=tiny>libvorbis documentation</p></td>
|
Chris@1
|
65 <td align=right><p class=tiny>libvorbis version 1.3.2 - 20101101</p></td>
|
Chris@1
|
66 </tr>
|
Chris@1
|
67 </table>
|
Chris@1
|
68
|
Chris@1
|
69
|
Chris@1
|
70 </body>
|
Chris@1
|
71
|
Chris@1
|
72 </html>
|