~n3npq/lsb/t2c-alsa-tests

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>ALSA project - the C library reference: /home/alsa/tmp/cvs/alsa-lib/include/timer.h Source File</title>

<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css"></head><body>
<!-- Generated by Doxygen 1.5.0 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
    <li id="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
    <li><a href="examples.html"><span>Examples</span></a></li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    <li><a href="globals.html"><span>Globals</span></a></li>
  </ul></div>
<h1>/home/alsa/tmp/cvs/alsa-lib/include/timer.h</h1><a href="timer_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <br><a name="l00011"></a>00011 <span class="comment">/*</span>
<a name="l00012"></a>00012 <span class="comment"> *   This library is free software; you can redistribute it and/or modify</span>
<a name="l00013"></a>00013 <span class="comment"> *   it under the terms of the GNU Lesser General Public License as</span>
<a name="l00014"></a>00014 <span class="comment"> *   published by the Free Software Foundation; either version 2.1 of</span>
<a name="l00015"></a>00015 <span class="comment"> *   the License, or (at your option) any later version.</span>
<a name="l00016"></a>00016 <span class="comment"> *</span>
<a name="l00017"></a>00017 <span class="comment"> *   This program is distributed in the hope that it will be useful,</span>
<a name="l00018"></a>00018 <span class="comment"> *   but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00019"></a>00019 <span class="comment"> *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00020"></a>00020 <span class="comment"> *   GNU Lesser General Public License for more details.</span>
<a name="l00021"></a>00021 <span class="comment"> *</span>
<a name="l00022"></a>00022 <span class="comment"> *   You should have received a copy of the GNU Lesser General Public</span>
<a name="l00023"></a>00023 <span class="comment"> *   License along with this library; if not, write to the Free Software</span>
<a name="l00024"></a>00024 <span class="comment"> *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA</span>
<a name="l00025"></a>00025 <span class="comment"> *</span>
<a name="l00026"></a>00026 <span class="comment"> */</span>
<a name="l00027"></a>00027 <br><a name="l00028"></a>00028 <span class="preprocessor">#ifndef __ALSA_TIMER_H</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#define __ALSA_TIMER_H</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span>
<a name="l00031"></a>00031 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {<br><a name="l00033"></a>00033 <span class="preprocessor">#endif</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span>
<a name="l00042"></a><a class="code" href="group___timer.html#g9d5a1655b2c2efab428b6275f3085afb">00042</a> <span class="preprocessor">#define SND_TIMER_DLSYM_VERSION         _dlsym_timer_001</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span>
<a name="l00044"></a><a class="code" href="group___timer.html#g3014988ef7272ff766c34ce729c556b3">00044</a> <span class="preprocessor">#define SND_TIMER_QUERY_DLSYM_VERSION   _dlsym_timer_query_001</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span>
<a name="l00047"></a><a class="code" href="group___timer.html#g9bf8a9449a17a0328dfbda9f64bf7aca">00047</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>_snd_timer_id snd_timer_id_t;<br><a name="l00049"></a><a class="code" href="group___timer.html#gc66ac51be90a47c042f56a2939c09031">00049</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>_snd_timer_ginfo snd_timer_ginfo_t;<br><a name="l00051"></a><a class="code" href="group___timer.html#g53853acb7556d631e8f468b439116752">00051</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>_snd_timer_gparams snd_timer_gparams_t;<br><a name="l00053"></a><a class="code" href="group___timer.html#g760c2adda5d155a1bf8e6a78a0d9f433">00053</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>_snd_timer_gstatus snd_timer_gstatus_t;<br><a name="l00055"></a><a class="code" href="group___timer.html#ge0b1c47741625f82dc0c7532fa6b45ea">00055</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>_snd_timer_info snd_timer_info_t;<br><a name="l00057"></a><a class="code" href="group___timer.html#gb49219f23948c5e25833cdfe20379036">00057</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>_snd_timer_params snd_timer_params_t;<br><a name="l00059"></a><a class="code" href="group___timer.html#g15682094f8d5aedb2a42ed794f17a969">00059</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>_snd_timer_status snd_timer_status_t;<br><a name="l00061"></a><a class="code" href="group___timer.html#g3efaba4b2f262627633fe01895ab5cf4">00061</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="group___timer.html#g3efaba4b2f262627633fe01895ab5cf4">_snd_timer_class</a> {<br><a name="l00062"></a>00062         <a class="code" href="group___timer.html#gg3efaba4b2f262627633fe01895ab5cf49d7132819fdf4d3b1d361067a0628a14">SND_TIMER_CLASS_NONE</a> = -1,      <br><a name="l00063"></a>00063         <a class="code" href="group___timer.html#gg3efaba4b2f262627633fe01895ab5cf4828b8581b3fa7dd83a84a3a293ea211a">SND_TIMER_CLASS_SLAVE</a> = 0,      <br><a name="l00064"></a>00064         <a class="code" href="group___timer.html#gg3efaba4b2f262627633fe01895ab5cf45edc3cd54b8a86083980b1b2f7052a2f">SND_TIMER_CLASS_GLOBAL</a>,         <br><a name="l00065"></a>00065         <a class="code" href="group___timer.html#gg3efaba4b2f262627633fe01895ab5cf4f16573052fa4d0face5fc4c3dceb7bab">SND_TIMER_CLASS_CARD</a>,           <br><a name="l00066"></a>00066         <a class="code" href="group___timer.html#gg3efaba4b2f262627633fe01895ab5cf475038465114b2ba366c466582fe870fa">SND_TIMER_CLASS_PCM</a>,            <br><a name="l00067"></a><a class="code" href="group___timer.html#gg3efaba4b2f262627633fe01895ab5cf4ea45e2894a6815d76fb8548832d0cd00">00067</a>         <a class="code" href="group___timer.html#gg3efaba4b2f262627633fe01895ab5cf4ea45e2894a6815d76fb8548832d0cd00">SND_TIMER_CLASS_LAST</a> = SND_TIMER_CLASS_PCM      <br><a name="l00068"></a>00068 } <a class="code" href="group___timer.html#gfd9692f99e3a2a3371dcb9bc37be8948">snd_timer_class_t</a>;<br><a name="l00069"></a>00069 <br><a name="l00071"></a><a class="code" href="group___timer.html#gc8fce0ad5136f92070a5fbdd02249555">00071</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="group___timer.html#gc8fce0ad5136f92070a5fbdd02249555">_snd_timer_slave_class</a> {<br><a name="l00072"></a>00072         <a class="code" href="group___timer.html#ggc8fce0ad5136f92070a5fbdd022495552cace03d1579fb4f7239f32802c06da0">SND_TIMER_SCLASS_NONE</a> = 0,              <br><a name="l00073"></a>00073         <a class="code" href="group___timer.html#ggc8fce0ad5136f92070a5fbdd02249555e8c586bafb328cb33e8fc38af0b8613e">SND_TIMER_SCLASS_APPLICATION</a>,           <br><a name="l00074"></a>00074         <a class="code" href="group___timer.html#ggc8fce0ad5136f92070a5fbdd02249555c9f3e9a870d467a3219d134ef2228f45">SND_TIMER_SCLASS_SEQUENCER</a>,             <br><a name="l00075"></a>00075         <a class="code" href="group___timer.html#ggc8fce0ad5136f92070a5fbdd02249555bdd623dc751949fbe97d56250caa0671">SND_TIMER_SCLASS_OSS_SEQUENCER</a>,         <br><a name="l00076"></a><a class="code" href="group___timer.html#ggc8fce0ad5136f92070a5fbdd0224955517e1109887b86b51985178fc2df1f87b">00076</a>         <a class="code" href="group___timer.html#ggc8fce0ad5136f92070a5fbdd0224955517e1109887b86b51985178fc2df1f87b">SND_TIMER_SCLASS_LAST</a> = SND_TIMER_SCLASS_OSS_SEQUENCER  <br><a name="l00077"></a>00077 } <a class="code" href="group___timer.html#gae66e2b603dd6fc81516bce329381bc1">snd_timer_slave_class_t</a>;<br><a name="l00078"></a>00078 <br><a name="l00080"></a><a class="code" href="group___timer.html#g9552320b8256d2a1e0c6e78a53625f0a">00080</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="group___timer.html#g9552320b8256d2a1e0c6e78a53625f0a">_snd_timer_event</a> {<br><a name="l00081"></a>00081         SND_TIMER_EVENT_RESOLUTION = 0, <span class="comment">/* val = resolution in ns */</span>
<a name="l00082"></a>00082         SND_TIMER_EVENT_TICK,           <span class="comment">/* val = ticks */</span>
<a name="l00083"></a>00083         SND_TIMER_EVENT_START,          <span class="comment">/* val = resolution in ns */</span>
<a name="l00084"></a>00084         SND_TIMER_EVENT_STOP,           <span class="comment">/* val = 0 */</span>
<a name="l00085"></a>00085         SND_TIMER_EVENT_CONTINUE,       <span class="comment">/* val = resolution in ns */</span>
<a name="l00086"></a>00086         SND_TIMER_EVENT_PAUSE,          <span class="comment">/* val = 0 */</span>
<a name="l00087"></a>00087         SND_TIMER_EVENT_EARLY,          <span class="comment">/* val = 0 */</span>
<a name="l00088"></a>00088         SND_TIMER_EVENT_SUSPEND,        <span class="comment">/* val = 0 */</span>
<a name="l00089"></a>00089         SND_TIMER_EVENT_RESUME,         <span class="comment">/* val = resolution in ns */</span>
<a name="l00090"></a>00090         <span class="comment">/* master timer events for slave timer instances */</span>
<a name="l00091"></a>00091         SND_TIMER_EVENT_MSTART = SND_TIMER_EVENT_START + 10,<br><a name="l00092"></a>00092         SND_TIMER_EVENT_MSTOP = SND_TIMER_EVENT_STOP + 10,<br><a name="l00093"></a>00093         SND_TIMER_EVENT_MCONTINUE = SND_TIMER_EVENT_CONTINUE + 10,<br><a name="l00094"></a>00094         SND_TIMER_EVENT_MPAUSE = SND_TIMER_EVENT_PAUSE + 10,<br><a name="l00095"></a>00095         SND_TIMER_EVENT_MSUSPEND = SND_TIMER_EVENT_SUSPEND + 10,<br><a name="l00096"></a>00096         SND_TIMER_EVENT_MRESUME = SND_TIMER_EVENT_RESUME + 10   <br><a name="l00097"></a>00097 } <a class="code" href="group___timer.html#g839530e99904ddd86966b9966136f1ad">snd_timer_event_t</a>;<br><a name="l00098"></a>00098 <br><a name="l00100"></a><a class="code" href="struct__snd__timer__read.html">00100</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__snd__timer__read.html">_snd_timer_read</a> {<br><a name="l00101"></a><a class="code" href="struct__snd__timer__read.html#4c16daf2daab712029dd300db244bf8d">00101</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="struct__snd__timer__read.html#4c16daf2daab712029dd300db244bf8d">resolution</a>;        <br><a name="l00102"></a><a class="code" href="struct__snd__timer__read.html#59e48420fbbb63b309e6ec6032ce66d8">00102</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="struct__snd__timer__read.html#59e48420fbbb63b309e6ec6032ce66d8">ticks</a>;             <br><a name="l00103"></a>00103 } <a class="code" href="struct__snd__timer__read.html">snd_timer_read_t</a>;<br><a name="l00104"></a>00104 <br><a name="l00106"></a><a class="code" href="struct__snd__timer__tread.html">00106</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__snd__timer__tread.html">_snd_timer_tread</a> {<br><a name="l00107"></a><a class="code" href="struct__snd__timer__tread.html#c54cd11ed1b7c667dfcdc5259a5cbead">00107</a>         snd_timer_event_t <a class="code" href="struct__snd__timer__tread.html#c54cd11ed1b7c667dfcdc5259a5cbead">event</a>;        <br><a name="l00108"></a><a class="code" href="struct__snd__timer__tread.html#6d7711f9a1ec34bfb6f53d6a28e7bda1">00108</a>         <a class="code" href="group___global.html#g9ec799950aa7da856cf805705197c390">snd_htimestamp_t</a> <a class="code" href="struct__snd__timer__tread.html#6d7711f9a1ec34bfb6f53d6a28e7bda1">tstamp</a>;        <br><a name="l00109"></a><a class="code" href="struct__snd__timer__tread.html#0fd4b1115dc9c3c2c66c1378df01139a">00109</a>         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="struct__snd__timer__tread.html#0fd4b1115dc9c3c2c66c1378df01139a">val</a>;               <br><a name="l00110"></a>00110 } <a class="code" href="struct__snd__timer__tread.html">snd_timer_tread_t</a>;<br><a name="l00111"></a>00111 <br><a name="l00113"></a><a class="code" href="group___timer.html#g7cb474fffc3c7f038b68a3f05ce53d8c">00113</a> <span class="preprocessor">#define SND_TIMER_GLOBAL_SYSTEM 0</span>
<a name="l00114"></a>00114 <span class="preprocessor"></span>
<a name="l00115"></a><a class="code" href="group___timer.html#gc977173e1b834e2e41d3611c4063fbe4">00115</a> <span class="preprocessor">#define SND_TIMER_GLOBAL_RTC    1</span>
<a name="l00116"></a>00116 <span class="preprocessor"></span>
<a name="l00117"></a><a class="code" href="group___timer.html#g20f1ec6d25dbc223c59abd4c800f40c4">00117</a> <span class="preprocessor">#define SND_TIMER_GLOBAL_HPET   2</span>
<a name="l00118"></a>00118 <span class="preprocessor"></span>
<a name="l00120"></a><a class="code" href="group___timer.html#g19279d167469082d1efd10f6ed4289ab">00120</a> <span class="preprocessor">#define SND_TIMER_OPEN_NONBLOCK         (1&lt;&lt;0)</span>
<a name="l00121"></a>00121 <span class="preprocessor"></span>
<a name="l00122"></a><a class="code" href="group___timer.html#ga70f62c46b37ca83fb25bc30e2acc3aa">00122</a> <span class="preprocessor">#define SND_TIMER_OPEN_TREAD            (1&lt;&lt;1)</span>
<a name="l00123"></a>00123 <span class="preprocessor"></span>
<a name="l00125"></a><a class="code" href="group___timer.html#g221d3c1cbcdc8d753f46adbc3d4c28bd">00125</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="group___timer.html#g221d3c1cbcdc8d753f46adbc3d4c28bd">_snd_timer_type</a> {<br><a name="l00127"></a>00127         <a class="code" href="group___timer.html#gg221d3c1cbcdc8d753f46adbc3d4c28bde113efcf7a033b11458840d2273db073">SND_TIMER_TYPE_HW</a> = 0,<br><a name="l00129"></a>00129         <a class="code" href="group___timer.html#gg221d3c1cbcdc8d753f46adbc3d4c28bd4a7e6b70bd324e582cde3c898e8acc10">SND_TIMER_TYPE_SHM</a>,<br><a name="l00131"></a>00131         <a class="code" href="group___timer.html#gg221d3c1cbcdc8d753f46adbc3d4c28bddcb338fdf754bb22c01204fdcae4c385">SND_TIMER_TYPE_INET</a>
<a name="l00132"></a>00132 } <a class="code" href="group___timer.html#gcdb15c29789833003322f8f6b9cd783f">snd_timer_type_t</a>;<br><a name="l00133"></a>00133 <br><a name="l00135"></a><a class="code" href="group___timer.html#g2628d1e5a8d874d9fa10439369145d50">00135</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>_snd_timer_query snd_timer_query_t;<br><a name="l00137"></a><a class="code" href="group___timer.html#gcea0e939b68f5649d5739ef66dcfc68a">00137</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>_snd_timer snd_timer_t;<br><a name="l00138"></a>00138 <br><a name="l00139"></a>00139 <br><a name="l00140"></a>00140 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#gd0f9fa9290c43c4540bce234546541c5">snd_timer_query_open</a>(snd_timer_query_t **handle, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> mode);<br><a name="l00141"></a>00141 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#g7d5ca6b9f390b630ce97deb4c6e346d0">snd_timer_query_open_lconf</a>(snd_timer_query_t **handle, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> mode, <a class="code" href="group___config.html#gb7dc173feea5bedcd999bba678eb53a7">snd_config_t</a> *lconf);<br><a name="l00142"></a>00142 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#ga212ea45a9ddff3f6ef726407564a1fc">snd_timer_query_close</a>(snd_timer_query_t *handle);<br><a name="l00143"></a>00143 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#g69a8bd71b56ddbb9027602f5d7d3080d">snd_timer_query_next_device</a>(snd_timer_query_t *handle, snd_timer_id_t *tid);<br><a name="l00144"></a>00144 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#g25d15ec2f1025bc04ca2d387615ccba9">snd_timer_query_info</a>(snd_timer_query_t *handle, snd_timer_ginfo_t *info);<br><a name="l00145"></a>00145 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#g8c3e3ee0c67c5dbc9c06d65d2fe3d88a">snd_timer_query_params</a>(snd_timer_query_t *handle, snd_timer_gparams_t *params);<br><a name="l00146"></a>00146 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#g3152eb69bbca420fa62b403b1a65bde1">snd_timer_query_status</a>(snd_timer_query_t *handle, snd_timer_gstatus_t *status);<br><a name="l00147"></a>00147 <br><a name="l00148"></a>00148 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#gff57e9a2e9af3313c13be386efcea822">snd_timer_open</a>(snd_timer_t **handle, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> mode);<br><a name="l00149"></a>00149 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#g3dc654f4bd2db3fb003513e1f4d91679">snd_timer_open_lconf</a>(snd_timer_t **handle, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> mode, <a class="code" href="group___config.html#gb7dc173feea5bedcd999bba678eb53a7">snd_config_t</a> *lconf);<br><a name="l00150"></a>00150 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#geca63c329ab487ac9858a0a15ed8171b">snd_timer_close</a>(snd_timer_t *handle);<br><a name="l00151"></a>00151 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#gd47561cd48a4b01b852212e1aba25e51">snd_async_add_timer_handler</a>(<a class="code" href="group___global.html#ga966cc0e80d3b8f070437c851114d5a5">snd_async_handler_t</a> **handler, snd_timer_t *timer,<br><a name="l00152"></a>00152                                 <a class="code" href="group___global.html#gc2c426c7ea09cdcc0cdb398660104baa">snd_async_callback_t</a> callback, <span class="keywordtype">void</span> *private_data);<br><a name="l00153"></a>00153 snd_timer_t *<a class="code" href="group___timer.html#g40216d28e9968d878c8b4761dd9e3751">snd_async_handler_get_timer</a>(<a class="code" href="group___global.html#ga966cc0e80d3b8f070437c851114d5a5">snd_async_handler_t</a> *handler);<br><a name="l00154"></a>00154 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#gadbb1ff0afbfe5238c8603338fe9ff87">snd_timer_poll_descriptors_count</a>(snd_timer_t *handle);<br><a name="l00155"></a>00155 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#gf60e1ebe77650dc2aaf4d6e04924b599">snd_timer_poll_descriptors</a>(snd_timer_t *handle, <span class="keyword">struct</span> pollfd *pfds, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> space);<br><a name="l00156"></a>00156 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#g5ae92e0e9b4b1b5cc421feb1ef76660b">snd_timer_poll_descriptors_revents</a>(snd_timer_t *timer, <span class="keyword">struct</span> pollfd *pfds, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nfds, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> *revents);<br><a name="l00157"></a>00157 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#g11b2bc64a6d59065ba4f52df7b751db7">snd_timer_info</a>(snd_timer_t *handle, snd_timer_info_t *timer);<br><a name="l00158"></a>00158 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#g79d62b82c579b2c61684e45dc3deb3f9">snd_timer_params</a>(snd_timer_t *handle, snd_timer_params_t *params);<br><a name="l00159"></a>00159 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#g073eb2b8bc888753ed259031a75e983e">snd_timer_status</a>(snd_timer_t *handle, snd_timer_status_t *status);<br><a name="l00160"></a>00160 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#gaffbb9e9ee1820597c46c742b6297f06">snd_timer_start</a>(snd_timer_t *handle);<br><a name="l00161"></a>00161 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#gcc112275598b09f87a2b877d99df0ef6">snd_timer_stop</a>(snd_timer_t *handle);<br><a name="l00162"></a>00162 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#g8a9446b4490d2bbac96672314454f21c">snd_timer_continue</a>(snd_timer_t *handle);<br><a name="l00163"></a>00163 ssize_t <a class="code" href="group___timer.html#g09307fbc086367b5d0dda0aca1ce38b9">snd_timer_read</a>(snd_timer_t *handle, <span class="keywordtype">void</span> *buffer, size_t size);<br><a name="l00164"></a>00164 <br><a name="l00165"></a>00165 size_t <a class="code" href="group___timer.html#gf5f66f2380255e4a3a4d6d0cadc4fdc9">snd_timer_id_sizeof</a>(<span class="keywordtype">void</span>);<br><a name="l00167"></a><a class="code" href="group___timer.html#g895ac29244e826a0aba3dd737383563b">00167</a> <span class="preprocessor">#define snd_timer_id_alloca(ptr) __snd_alloca(ptr, snd_timer_id)</span>
<a name="l00168"></a>00168 <span class="preprocessor"></span><span class="keywordtype">int</span> <a class="code" href="group___timer.html#g7394f79313c1b63fe986fc1a565f787d">snd_timer_id_malloc</a>(snd_timer_id_t **ptr);<br><a name="l00169"></a>00169 <span class="keywordtype">void</span> <a class="code" href="group___timer.html#g561d65ec538ba48b7514807d862711c4">snd_timer_id_free</a>(snd_timer_id_t *obj);<br><a name="l00170"></a>00170 <span class="keywordtype">void</span> <a class="code" href="group___timer.html#g17e1a15d56ee5d027d37aeb4fe17c0fc">snd_timer_id_copy</a>(snd_timer_id_t *dst, <span class="keyword">const</span> snd_timer_id_t *src);<br><a name="l00171"></a>00171 <br><a name="l00172"></a>00172 <span class="keywordtype">void</span> <a class="code" href="group___timer.html#g4b30ff7e5b2175320267d2e98c0d5801">snd_timer_id_set_class</a>(snd_timer_id_t *<span class="keywordtype">id</span>, <span class="keywordtype">int</span> dev_class);<br><a name="l00173"></a>00173 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#g789fc53446683e9e22986d62bd6a5e4a">snd_timer_id_get_class</a>(snd_timer_id_t *<span class="keywordtype">id</span>);<br><a name="l00174"></a>00174 <span class="keywordtype">void</span> <a class="code" href="group___timer.html#g50ce362edec2f82715990b2257f41127">snd_timer_id_set_sclass</a>(snd_timer_id_t *<span class="keywordtype">id</span>, <span class="keywordtype">int</span> dev_sclass);<br><a name="l00175"></a>00175 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#g0f7023f271e24607f2b052be58d80d5f">snd_timer_id_get_sclass</a>(snd_timer_id_t *<span class="keywordtype">id</span>);<br><a name="l00176"></a>00176 <span class="keywordtype">void</span> <a class="code" href="group___timer.html#g0474857431e3b5c76266d5e1b40a5ad4">snd_timer_id_set_card</a>(snd_timer_id_t *<span class="keywordtype">id</span>, <span class="keywordtype">int</span> card);<br><a name="l00177"></a>00177 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#ge56b375f5e548a3c669acee962255965">snd_timer_id_get_card</a>(snd_timer_id_t *<span class="keywordtype">id</span>);<br><a name="l00178"></a>00178 <span class="keywordtype">void</span> <a class="code" href="group___timer.html#g307a4f0bb0bf77f1411f26bb4a791fb3">snd_timer_id_set_device</a>(snd_timer_id_t *<span class="keywordtype">id</span>, <span class="keywordtype">int</span> device);<br><a name="l00179"></a>00179 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#gd373653ec0a0f588a99dd3625d8f595a">snd_timer_id_get_device</a>(snd_timer_id_t *<span class="keywordtype">id</span>);<br><a name="l00180"></a>00180 <span class="keywordtype">void</span> <a class="code" href="group___timer.html#g5a6cfb480bce114072f92e0dc417602a">snd_timer_id_set_subdevice</a>(snd_timer_id_t *<span class="keywordtype">id</span>, <span class="keywordtype">int</span> subdevice);<br><a name="l00181"></a>00181 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#g65af963e4acc77c2fa2e6b865bc51670">snd_timer_id_get_subdevice</a>(snd_timer_id_t *<span class="keywordtype">id</span>);<br><a name="l00182"></a>00182 <br><a name="l00183"></a>00183 size_t <a class="code" href="group___timer.html#g6bee5e7c713043c3160f1e154b850dd4">snd_timer_ginfo_sizeof</a>(<span class="keywordtype">void</span>);<br><a name="l00185"></a><a class="code" href="group___timer.html#g083fbdc551a312f21b16cf4d5cca4356">00185</a> <span class="preprocessor">#define snd_timer_ginfo_alloca(ptr) __snd_alloca(ptr, snd_timer_ginfo)</span>
<a name="l00186"></a>00186 <span class="preprocessor"></span><span class="keywordtype">int</span> <a class="code" href="group___timer.html#ge32455d500ea9a06c4d8c1b32c3b824c">snd_timer_ginfo_malloc</a>(snd_timer_ginfo_t **ptr);<br><a name="l00187"></a>00187 <span class="keywordtype">void</span> <a class="code" href="group___timer.html#g7137e441951051f902906538284ceefa">snd_timer_ginfo_free</a>(snd_timer_ginfo_t *obj);<br><a name="l00188"></a>00188 <span class="keywordtype">void</span> <a class="code" href="group___timer.html#g69bdb6e35b0d5a01cebf5eb3e122179b">snd_timer_ginfo_copy</a>(snd_timer_ginfo_t *dst, <span class="keyword">const</span> snd_timer_ginfo_t *src);<br><a name="l00189"></a>00189 <br><a name="l00190"></a>00190 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#g2dbb778206fd064c4bf2c2978810fc11">snd_timer_ginfo_set_tid</a>(snd_timer_ginfo_t *obj, snd_timer_id_t *tid);<br><a name="l00191"></a>00191 snd_timer_id_t *<a class="code" href="group___timer.html#gbb530b8f34091d8331165141cb93df3c">snd_timer_ginfo_get_tid</a>(snd_timer_ginfo_t *obj);<br><a name="l00192"></a>00192 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="group___timer.html#gf15546b83ee290fea38af0241a93ed9c">snd_timer_ginfo_get_flags</a>(snd_timer_ginfo_t *obj);<br><a name="l00193"></a>00193 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#gf316750c4c2de1c6ee4c2b7c47c2059f">snd_timer_ginfo_get_card</a>(snd_timer_ginfo_t *obj);<br><a name="l00194"></a>00194 <span class="keywordtype">char</span> *<a class="code" href="group___timer.html#gc5ba8e984a1c7dd6b95b6048ea055a56">snd_timer_ginfo_get_id</a>(snd_timer_ginfo_t *obj);<br><a name="l00195"></a>00195 <span class="keywordtype">char</span> *<a class="code" href="group___timer.html#g0b367048029e54b79b7654ab0b2c0d25">snd_timer_ginfo_get_name</a>(snd_timer_ginfo_t *obj);<br><a name="l00196"></a>00196 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="group___timer.html#gdc9fbba0f9d0284eef9f5e8a59c88617">snd_timer_ginfo_get_resolution</a>(snd_timer_ginfo_t *obj);<br><a name="l00197"></a>00197 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="group___timer.html#g377b501c8157e45ea2e48f8ba2955d77">snd_timer_ginfo_get_resolution_min</a>(snd_timer_ginfo_t *obj);<br><a name="l00198"></a>00198 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="group___timer.html#gab9910f8ca427fb1a2a7dce64ac57ca0">snd_timer_ginfo_get_resolution_max</a>(snd_timer_ginfo_t *obj);<br><a name="l00199"></a>00199 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="group___timer.html#g4a8d40c63a5a5a74bd6e6d42ed0d67ea">snd_timer_ginfo_get_clients</a>(snd_timer_ginfo_t *obj);<br><a name="l00200"></a>00200 <br><a name="l00201"></a>00201 size_t <a class="code" href="group___timer.html#g37bf4e7b4e8ba0b08b703362666acbd9">snd_timer_info_sizeof</a>(<span class="keywordtype">void</span>);<br><a name="l00203"></a><a class="code" href="group___timer.html#g1536c832d26618f29c9b20bb1264a041">00203</a> <span class="preprocessor">#define snd_timer_info_alloca(ptr) __snd_alloca(ptr, snd_timer_info)</span>
<a name="l00204"></a>00204 <span class="preprocessor"></span><span class="keywordtype">int</span> <a class="code" href="group___timer.html#g9321829a57eff969da06783b1e950917">snd_timer_info_malloc</a>(snd_timer_info_t **ptr);<br><a name="l00205"></a>00205 <span class="keywordtype">void</span> <a class="code" href="group___timer.html#g53380a36cb70a662441224459fa5a5be">snd_timer_info_free</a>(snd_timer_info_t *obj);<br><a name="l00206"></a>00206 <span class="keywordtype">void</span> <a class="code" href="group___timer.html#g65745fcf3ea2b2ed488f3bc8cb8ec13f">snd_timer_info_copy</a>(snd_timer_info_t *dst, <span class="keyword">const</span> snd_timer_info_t *src);<br><a name="l00207"></a>00207 <br><a name="l00208"></a>00208 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#g04141ae3c2dd59b4122c53658bf9fafd">snd_timer_info_is_slave</a>(snd_timer_info_t * info);<br><a name="l00209"></a>00209 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#g2d30016302bb2976de6630ab069af2aa">snd_timer_info_get_card</a>(snd_timer_info_t * info);<br><a name="l00210"></a>00210 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group___timer.html#g626d90dd33563a4de2139b19279add11">snd_timer_info_get_id</a>(snd_timer_info_t * info);<br><a name="l00211"></a>00211 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="group___timer.html#ga6f36810c5455b36b7f436f4d44af384">snd_timer_info_get_name</a>(snd_timer_info_t * info);<br><a name="l00212"></a>00212 <span class="keywordtype">long</span> <a class="code" href="group___timer.html#gb5cd4dcbbfe92912998e4ddcf4443997">snd_timer_info_get_resolution</a>(snd_timer_info_t * info);<br><a name="l00213"></a>00213 <br><a name="l00214"></a>00214 size_t <a class="code" href="group___timer.html#ga615967097af6a6d14102e99c8ff4557">snd_timer_params_sizeof</a>(<span class="keywordtype">void</span>);<br><a name="l00216"></a><a class="code" href="group___timer.html#g70e7c9d1c0e50abdefc10e504afa4a28">00216</a> <span class="preprocessor">#define snd_timer_params_alloca(ptr) __snd_alloca(ptr, snd_timer_params)</span>
<a name="l00217"></a>00217 <span class="preprocessor"></span><span class="keywordtype">int</span> <a class="code" href="group___timer.html#g1d29bd2faa296a98d42cee0d29b66943">snd_timer_params_malloc</a>(snd_timer_params_t **ptr);<br><a name="l00218"></a>00218 <span class="keywordtype">void</span> <a class="code" href="group___timer.html#g58ecc13f57c56686ddbf8a4b388b96a7">snd_timer_params_free</a>(snd_timer_params_t *obj);<br><a name="l00219"></a>00219 <span class="keywordtype">void</span> <a class="code" href="group___timer.html#g979b0ff626a62ed4472bc9cebd726324">snd_timer_params_copy</a>(snd_timer_params_t *dst, <span class="keyword">const</span> snd_timer_params_t *src);<br><a name="l00220"></a>00220 <br><a name="l00221"></a>00221 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#g8d4d4b15ebf4851bfc3e2e069c2fe811">snd_timer_params_set_auto_start</a>(snd_timer_params_t * params, <span class="keywordtype">int</span> auto_start);<br><a name="l00222"></a>00222 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#gad626140af5713206725acec77632739">snd_timer_params_get_auto_start</a>(snd_timer_params_t * params);<br><a name="l00223"></a>00223 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#g0f2590e6d688867b0dff574753e25085">snd_timer_params_set_exclusive</a>(snd_timer_params_t * params, <span class="keywordtype">int</span> exclusive);<br><a name="l00224"></a>00224 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#g7a8eb60376ca4b8995c8733428c45222">snd_timer_params_get_exclusive</a>(snd_timer_params_t * params);<br><a name="l00225"></a>00225 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#gd2e8119a6000265ea0d3f6ab9111b7d1">snd_timer_params_set_early_event</a>(snd_timer_params_t * params, <span class="keywordtype">int</span> early_event);<br><a name="l00226"></a>00226 <span class="keywordtype">int</span> <a class="code" href="group___timer.html#gea0fed047f16c71122d9ef4684843ce1">snd_timer_params_get_early_event</a>(snd_timer_params_t * params);<br><a name="l00227"></a>00227 <span class="keywordtype">void</span> <a class="code" href="group___timer.html#g371828af6e14fde38dd393adf1fb0130">snd_timer_params_set_ticks</a>(snd_timer_params_t * params, <span class="keywordtype">long</span> ticks);<br><a name="l00228"></a>00228 <span class="keywordtype">long</span> <a class="code" href="group___timer.html#g8cddd76ac3ccabf8a99d2dc8ad83b101">snd_timer_params_get_ticks</a>(snd_timer_params_t * params);<br><a name="l00229"></a>00229 <span class="keywordtype">void</span> <a class="code" href="group___timer.html#g8655408c845e162e89456e6c97d90714">snd_timer_params_set_queue_size</a>(snd_timer_params_t * params, <span class="keywordtype">long</span> queue_size);<br><a name="l00230"></a>00230 <span class="keywordtype">long</span> <a class="code" href="group___timer.html#ga567494edbc333d56946c19a397ee11c">snd_timer_params_get_queue_size</a>(snd_timer_params_t * params);<br><a name="l00231"></a>00231 <span class="keywordtype">void</span> <a class="code" href="group___timer.html#gb4d943dc55441f4ced31e903c920be13">snd_timer_params_set_filter</a>(snd_timer_params_t * params, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> filter);<br><a name="l00232"></a>00232 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="group___timer.html#g5c1d7d3c39cbcaa7fd9637e6acd91560">snd_timer_params_get_filter</a>(snd_timer_params_t * params);<br><a name="l00233"></a>00233 <br><a name="l00234"></a>00234 size_t <a class="code" href="group___timer.html#gda9800ed8dc129593a112f234c46e065">snd_timer_status_sizeof</a>(<span class="keywordtype">void</span>);<br><a name="l00236"></a><a class="code" href="group___timer.html#g1dfd48f0828bb9e18c6ff38d89c1ef18">00236</a> <span class="preprocessor">#define snd_timer_status_alloca(ptr) __snd_alloca(ptr, snd_timer_status)</span>
<a name="l00237"></a>00237 <span class="preprocessor"></span><span class="keywordtype">int</span> <a class="code" href="group___timer.html#g6b39c458da9550f833cea7e171522717">snd_timer_status_malloc</a>(snd_timer_status_t **ptr);<br><a name="l00238"></a>00238 <span class="keywordtype">void</span> <a class="code" href="group___timer.html#gac427314101a4f3c9c71300a6bc8700e">snd_timer_status_free</a>(snd_timer_status_t *obj);<br><a name="l00239"></a>00239 <span class="keywordtype">void</span> <a class="code" href="group___timer.html#gb933e2f8308444947eacd6505b63961a">snd_timer_status_copy</a>(snd_timer_status_t *dst, <span class="keyword">const</span> snd_timer_status_t *src);<br><a name="l00240"></a>00240 <br><a name="l00241"></a>00241 <a class="code" href="group___global.html#g9ec799950aa7da856cf805705197c390">snd_htimestamp_t</a> <a class="code" href="group___timer.html#gf7e221c7cfee47e91d075f6154befdff">snd_timer_status_get_timestamp</a>(snd_timer_status_t * status);<br><a name="l00242"></a>00242 <span class="keywordtype">long</span> <a class="code" href="group___timer.html#g3dffbd99deb65ea0616f595ddfec4192">snd_timer_status_get_resolution</a>(snd_timer_status_t * status);<br><a name="l00243"></a>00243 <span class="keywordtype">long</span> <a class="code" href="group___timer.html#g0e36b8b76a0affd6f86729d178c33110">snd_timer_status_get_lost</a>(snd_timer_status_t * status);<br><a name="l00244"></a>00244 <span class="keywordtype">long</span> <a class="code" href="group___timer.html#gd278287f5a5d33331a5548e19a86b01a">snd_timer_status_get_overrun</a>(snd_timer_status_t * status);<br><a name="l00245"></a>00245 <span class="keywordtype">long</span> <a class="code" href="group___timer.html#g37a52d7fcf34d36d2f279b4becc1546c">snd_timer_status_get_queue</a>(snd_timer_status_t * status);<br><a name="l00246"></a>00246 <br><a name="l00247"></a>00247 <span class="comment">/* deprecated functions, for compatibility */</span>
<a name="l00248"></a>00248 <span class="keywordtype">long</span> <a class="code" href="group___timer.html#ga68ec0221c87d04e7c42db29f277584b">snd_timer_info_get_ticks</a>(snd_timer_info_t * info);<br><a name="l00249"></a>00249 <br><a name="l00252"></a>00252 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00253"></a>00253 <span class="preprocessor"></span>}<br><a name="l00254"></a>00254 <span class="preprocessor">#endif</span>
<a name="l00255"></a>00255 <span class="preprocessor"></span>
<a name="l00256"></a>00256 <span class="preprocessor">#endif </span>
</pre></div><hr size="1"><address style=""><small>Generated on Wed Sep 9 14:37:08 2009 for ALSA project - the C library reference by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.0 </small></address>
</body></html>