-
Notifications
You must be signed in to change notification settings - Fork 0
/
al___audio_i_o_data_8hpp_source.html
441 lines (439 loc) · 82.4 KB
/
al___audio_i_o_data_8hpp_source.html
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Allolib: al_AudioIOData.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Allolib
 <span id="projectnumber">1.0</span>
</div>
<div id="projectbrief">C++ Components For Interactive Multimedia</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('al___audio_i_o_data_8hpp_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">al_AudioIOData.hpp</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#ifndef INCLUDE_AL_AUDIODATA_IO_HPP</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define INCLUDE_AL_AUDIODATA_IO_HPP</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>  </div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">/* Allocore --</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> Multimedia / virtual environment application class library</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"></span> </div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> Copyright (C) 2009. AlloSphere Research Group, Media Arts & Technology,</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> UCSB. Copyright (C) 2012. The Regents of the University of California. All</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> rights reserved.</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"></span> </div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> Redistribution and use in source and binary forms, with or without</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> modification, are permitted provided that the following conditions are</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> met:</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"></span> </div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> Redistributions of source code must retain the above copyright</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> notice, this list of conditions and the following disclaimer.</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"></span> </div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> Redistributions in binary form must reproduce the above</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> copyright notice, this list of conditions and the following disclaimer in the</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> documentation and/or other materials provided with the</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> distribution.</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"></span> </div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"> Neither the name of the University of California nor the names</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment"> of its contributors may be used to endorse or promote products derived from</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment"> this software without specific prior written permission.</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment"></span> </div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment"> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment"> IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment"> IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="comment"> PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="comment"> CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="comment"> EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="comment"> PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="comment"> OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="comment"> WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="comment"> OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="comment"> ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="comment"></span> </div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="comment"></span> </div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="comment"> File description:</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="comment"> An interface to low-level audio device streams</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="comment"></span> </div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="comment"> File author(s):</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="comment"> Lance Putnam, 2010, [email protected]</span></div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="comment"> Andres Cabrera 2017 [email protected]</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="comment">*/</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  </div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="preprocessor">#include <cassert></span></div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="preprocessor">#include <cinttypes></span></div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="preprocessor">#include <cstdio></span></div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="preprocessor">#include <cstring></span></div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  </div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <span class="keyword">namespace </span><a class="code" href="namespaceal.html">al</a> {</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  </div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="keyword">template</span> <<span class="keyword">class</span> T></div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="keyword">static</span> <span class="keywordtype">void</span> deleteBuf(T*& buf) {</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keyword">delete</span>[] buf;</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  buf = 0;</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> }</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  </div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="keyword">template</span> <<span class="keyword">class</span> T></div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="keyword">static</span> <span class="keywordtype">int</span> resize(T*& buf, <span class="keywordtype">int</span> n) {</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  deleteBuf(buf);</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  buf = <span class="keyword">new</span> T[n];</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordflow">return</span> n;</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> }</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  </div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="keyword">template</span> <<span class="keyword">class</span> T></div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="keyword">static</span> <span class="keywordtype">void</span> zero(T* buf, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> n) {</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  memset(buf, 0, n * <span class="keyword">sizeof</span>(T));</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> }</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  </div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="keyword">template</span> <<span class="keyword">class</span> T></div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="keyword">static</span> <span class="keywordtype">void</span> deinterleave(T* dst, <span class="keyword">const</span> T* src, <span class="keywordtype">int</span> numFrames, <span class="keywordtype">int</span> numChannels) {</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keywordtype">int</span> numSamples = numFrames * numChannels;</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> c = 0; c < numChannels; c++) {</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = c; i < numSamples; i += numChannels) {</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  *dst++ = src[i];</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  }</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  }</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> }</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  </div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="keyword">template</span> <<span class="keyword">class</span> T></div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="keyword">static</span> <span class="keywordtype">void</span> interleave(T* dst, <span class="keyword">const</span> T* src, <span class="keywordtype">int</span> numFrames, <span class="keywordtype">int</span> numChannels) {</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keywordtype">int</span> numSamples = numFrames * numChannels;</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> c = 0; c < numChannels; c++) {</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = c; i < numSamples; i += numChannels) {</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  dst[i] = *src++;</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  }</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  }</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> }</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  </div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="keyword">template</span> <<span class="keyword">class</span> T></div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="keyword">static</span> <span class="keywordtype">void</span> interleave(T *dst, T **src, <span class="keywordtype">int</span> numFrames, <span class="keywordtype">int</span> numChannels) {</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordtype">int</span> numSamples = numFrames * numChannels;</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> c = 0; c < numChannels; c++) {</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordtype">float</span> *channelSrc = src[c];</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = c; i < numSamples; i += numChannels) {</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  dst[i] = *channelSrc++;</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  }</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  }</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> }</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  </div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="classal_1_1_audio_device_info.html"> 111</a></span> <span class="keyword">class </span><a class="code" href="classal_1_1_audio_device_info.html">AudioDeviceInfo</a> {</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="classal_1_1_audio_device_info.html#a5449580e23adeb840b2fd7a684c2f5d0"> 114</a></span>  <span class="keyword">enum</span> <a class="code" href="classal_1_1_audio_device_info.html#a5449580e23adeb840b2fd7a684c2f5d0">StreamMode</a> {</div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="classal_1_1_audio_device_info.html#a5449580e23adeb840b2fd7a684c2f5d0a2aacd1d3abc8d563f822724428ce145f"> 115</a></span>  <a class="code" href="classal_1_1_audio_device_info.html#a5449580e23adeb840b2fd7a684c2f5d0a2aacd1d3abc8d563f822724428ce145f">INPUT</a> = 1, </div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <a class="code" href="classal_1_1_audio_device_info.html#a5449580e23adeb840b2fd7a684c2f5d0a389a6c8ce57e506e21b134611bf921c4">OUTPUT</a> = 2 </div>
<div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="classal_1_1_audio_device_info.html#a5449580e23adeb840b2fd7a684c2f5d0a389a6c8ce57e506e21b134611bf921c4"> 117</a></span>  };</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  </div>
<div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="classal_1_1_audio_device_info.html#abce41c8649acef7e15728091f46dd6f6"> 120</a></span>  <a class="code" href="classal_1_1_audio_device_info.html#abce41c8649acef7e15728091f46dd6f6">AudioDeviceInfo</a>(<span class="keywordtype">int</span> deviceNum);</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  </div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="comment">// /// @param[in] nameKeyword Keyword to search for in device name</span></div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="comment">// /// @param[in] stream Whether to search for input and/or</span></div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="comment">// output</span></div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <span class="comment">// devices</span></div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="comment">// AudioDeviceInfo(const std::string& nameKeyword, StreamMode stream =</span></div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="comment">// StreamMode(INPUT | OUTPUT)) : mID(-1) {}</span></div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  </div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keyword">virtual</span> ~<a class="code" href="classal_1_1_audio_device_info.html">AudioDeviceInfo</a>() {}</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  </div>
<div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="classal_1_1_audio_device_info.html#a89795acfbd1966856f459d876a66f801"> 131</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classal_1_1_audio_device_info.html#a89795acfbd1966856f459d876a66f801">valid</a>() <span class="keyword">const</span>; </div>
<div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="classal_1_1_audio_device_info.html#a592ba3cc9bc2f5019d0b8cd89c36357e"> 132</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classal_1_1_audio_device_info.html#a592ba3cc9bc2f5019d0b8cd89c36357e">id</a>() <span class="keyword">const</span>; </div>
<div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="classal_1_1_audio_device_info.html#a8e7b3aeeb7e60b125c41071508c8c932"> 133</a></span>  <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classal_1_1_audio_device_info.html#a8e7b3aeeb7e60b125c41071508c8c932">name</a>() <span class="keyword">const</span>; </div>
<div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="classal_1_1_audio_device_info.html#a4b3da1682a7fafb6fe976c59efe44c6f"> 134</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classal_1_1_audio_device_info.html#a4b3da1682a7fafb6fe976c59efe44c6f">channelsInMax</a>()</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keyword">const</span>; </div>
<div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="classal_1_1_audio_device_info.html#a15c33759f11a87a0ec7a4c3c86f831a2"> 136</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classal_1_1_audio_device_info.html#a15c33759f11a87a0ec7a4c3c86f831a2">channelsOutMax</a>()</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="keyword">const</span>; </div>
<div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="classal_1_1_audio_device_info.html#a71d92951e1a2f0c0d703e3c2ac3622fc"> 138</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classal_1_1_audio_device_info.html#a71d92951e1a2f0c0d703e3c2ac3622fc">defaultSampleRate</a>() <span class="keyword">const</span>; </div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  </div>
<div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="classal_1_1_audio_device_info.html#a53b6011616ecf4eb905249982a6dd750"> 140</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classal_1_1_audio_device_info.html#a53b6011616ecf4eb905249982a6dd750">setID</a>(<span class="keywordtype">int</span> iD); </div>
<div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="classal_1_1_audio_device_info.html#a66329e31b5643522455df80572962f09"> 141</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classal_1_1_audio_device_info.html#a66329e31b5643522455df80572962f09">setName</a>(<span class="keywordtype">char</span>* <a class="code" href="classal_1_1_audio_device_info.html#a8e7b3aeeb7e60b125c41071508c8c932">name</a>); </div>
<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="classal_1_1_audio_device_info.html#a4f638ec8269e533dfd1b79d378175a06"> 142</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classal_1_1_audio_device_info.html#a4f638ec8269e533dfd1b79d378175a06">setChannelsInMax</a>(</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="keywordtype">int</span> num); </div>
<div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="classal_1_1_audio_device_info.html#aadb9e8b6a1bb272e3ddd2bb0aff9ae9d"> 144</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classal_1_1_audio_device_info.html#aadb9e8b6a1bb272e3ddd2bb0aff9ae9d">setChannelsOutMax</a>(</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keywordtype">int</span> num); </div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="classal_1_1_audio_device_info.html#ab2fffde088fbccadd33ed904f89ebc6d"> 146</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classal_1_1_audio_device_info.html#ab2fffde088fbccadd33ed904f89ebc6d">setDefaultSampleRate</a>(<span class="keywordtype">double</span> rate); </div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  </div>
<div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="classal_1_1_audio_device_info.html#a11883b2115d2a6c4e6d7cd6e4773ddf8"> 148</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classal_1_1_audio_device_info.html#a11883b2115d2a6c4e6d7cd6e4773ddf8">hasInput</a>() <span class="keyword">const</span> = 0; </div>
<div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="classal_1_1_audio_device_info.html#aa825e58e22b6c89ccfe0f28c6dc75c55"> 149</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classal_1_1_audio_device_info.html#aa825e58e22b6c89ccfe0f28c6dc75c55">hasOutput</a>() <span class="keyword">const</span> = 0; </div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  </div>
<div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="classal_1_1_audio_device_info.html#a6b0821a5bc7c19f4425f9fc130ed9a3e"> 151</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classal_1_1_audio_device_info.html#a6b0821a5bc7c19f4425f9fc130ed9a3e">print</a>()</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <span class="keyword">const</span> = 0; </div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  </div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <span class="keywordtype">int</span> mID{-1};</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="keywordtype">char</span> mName[128];</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keywordtype">int</span> mChannelsInMax{0};</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <span class="keywordtype">int</span> mChannelsOutMax{0};</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <span class="keywordtype">double</span> mDefaultSampleRate{0};</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="keywordtype">bool</span> mValid{<span class="keyword">false</span>};</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> };</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  </div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span> <span class="keyword">inline</span> <a class="code" href="classal_1_1_audio_device_info.html#a5449580e23adeb840b2fd7a684c2f5d0">AudioDeviceInfo::StreamMode</a> operator|(</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="keyword">const</span> <a class="code" href="classal_1_1_audio_device_info.html#a5449580e23adeb840b2fd7a684c2f5d0">AudioDeviceInfo::StreamMode</a>& a,</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <span class="keyword">const</span> <a class="code" href="classal_1_1_audio_device_info.html#a5449580e23adeb840b2fd7a684c2f5d0">AudioDeviceInfo::StreamMode</a>& b) {</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code" href="classal_1_1_audio_device_info.html#a5449580e23adeb840b2fd7a684c2f5d0">AudioDeviceInfo::StreamMode</a><span class="keyword">></span>(+a | +b);</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span> }</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  </div>
<div class="line"><a name="l00174"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html"> 174</a></span> <span class="keyword">class </span><a class="code" href="classal_1_1_audio_i_o_data.html">AudioIOData</a> {</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#a6400d3ab75a5314a4d20620af979ca2f"> 177</a></span>  <a class="code" href="classal_1_1_audio_i_o_data.html#a6400d3ab75a5314a4d20620af979ca2f">AudioIOData</a>(<span class="keywordtype">void</span>* <a class="code" href="classal_1_1_audio_i_o_data.html#a209fc05057bee488bf97ecdd22141dca">user</a> = <span class="keyword">nullptr</span>);</div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  </div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <span class="keyword">virtual</span> ~<a class="code" href="classal_1_1_audio_i_o_data.html">AudioIOData</a>();</div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  </div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <span class="keyword">typedef</span> <span class="keyword">enum</span> { PORTAUDIO, RTAUDIO, DUMMY } Backend;</div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  </div>
<div class="line"><a name="l00184"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#aa252f47ea8e512ef32e85000bf33e653"> 184</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classal_1_1_audio_i_o_data.html#aa252f47ea8e512ef32e85000bf33e653">operator()</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (++mFrame) < <a class="code" href="classal_1_1_audio_i_o_data.html#a1380ebbf44f7b304cfc5b845f659d1c6">framesPerBuffer</a>(); }</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  </div>
<div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#acf2eb648a99956f436493ceb371129e1"> 187</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classal_1_1_audio_i_o_data.html#acf2eb648a99956f436493ceb371129e1">frame</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mFrame; }</div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  </div>
<div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#a0de459c68b6efda81394475f0edf85e9"> 190</a></span>  <span class="keywordtype">float</span>& <a class="code" href="classal_1_1_audio_i_o_data.html#a0de459c68b6efda81394475f0edf85e9">bus</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> chan)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classal_1_1_audio_i_o_data.html#a0de459c68b6efda81394475f0edf85e9">bus</a>(chan, <a class="code" href="classal_1_1_audio_i_o_data.html#acf2eb648a99956f436493ceb371129e1">frame</a>()); }</div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  </div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <span class="keywordtype">float</span>& <a class="code" href="classal_1_1_audio_i_o_data.html#a0de459c68b6efda81394475f0edf85e9">bus</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> chan, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classal_1_1_audio_i_o_data.html#acf2eb648a99956f436493ceb371129e1">frame</a>) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  </div>
<div class="line"><a name="l00196"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#aaa1b5ae5a1d7abfcd7e7e7374eb07583"> 196</a></span>  <span class="keywordtype">float</span>* <a class="code" href="classal_1_1_audio_i_o_data.html#aaa1b5ae5a1d7abfcd7e7e7374eb07583">busBuffer</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> chan = 0)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> &<a class="code" href="classal_1_1_audio_i_o_data.html#a0de459c68b6efda81394475f0edf85e9">bus</a>(chan, 0); }</div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  </div>
<div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#a64f0a8d9eabe5410e0a6dfe3e1d38e92"> 199</a></span>  <span class="keyword">const</span> <span class="keywordtype">float</span>& <a class="code" href="classal_1_1_audio_i_o_data.html#a64f0a8d9eabe5410e0a6dfe3e1d38e92">in</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> chan)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classal_1_1_audio_i_o_data.html#a64f0a8d9eabe5410e0a6dfe3e1d38e92">in</a>(chan, <a class="code" href="classal_1_1_audio_i_o_data.html#acf2eb648a99956f436493ceb371129e1">frame</a>()); }</div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  </div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <span class="keyword">const</span> <span class="keywordtype">float</span>& <a class="code" href="classal_1_1_audio_i_o_data.html#a64f0a8d9eabe5410e0a6dfe3e1d38e92">in</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> chan, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classal_1_1_audio_i_o_data.html#acf2eb648a99956f436493ceb371129e1">frame</a>) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  </div>
<div class="line"><a name="l00205"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#a91cc426fb9acd48c72be85665c3b59f2"> 205</a></span>  <span class="keyword">const</span> <span class="keywordtype">float</span>* <a class="code" href="classal_1_1_audio_i_o_data.html#a91cc426fb9acd48c72be85665c3b59f2">inBuffer</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> chan = 0)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> &<a class="code" href="classal_1_1_audio_i_o_data.html#a64f0a8d9eabe5410e0a6dfe3e1d38e92">in</a>(chan, 0); }</div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  </div>
<div class="line"><a name="l00208"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#a3c494d67bb1811dae0e92b64e13ab81b"> 208</a></span>  <span class="keywordtype">float</span>& <a class="code" href="classal_1_1_audio_i_o_data.html#a3c494d67bb1811dae0e92b64e13ab81b">out</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> chan)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classal_1_1_audio_i_o_data.html#a3c494d67bb1811dae0e92b64e13ab81b">out</a>(chan, <a class="code" href="classal_1_1_audio_i_o_data.html#acf2eb648a99956f436493ceb371129e1">frame</a>()); }</div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  </div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <span class="keywordtype">float</span>& <a class="code" href="classal_1_1_audio_i_o_data.html#a3c494d67bb1811dae0e92b64e13ab81b">out</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> chan, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classal_1_1_audio_i_o_data.html#acf2eb648a99956f436493ceb371129e1">frame</a>) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  </div>
<div class="line"><a name="l00214"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#a660238307d4b9186e8fd0201e354c23a"> 214</a></span>  <span class="keywordtype">float</span>* <a class="code" href="classal_1_1_audio_i_o_data.html#a660238307d4b9186e8fd0201e354c23a">outBuffer</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> chan = 0)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> &<a class="code" href="classal_1_1_audio_i_o_data.html#a3c494d67bb1811dae0e92b64e13ab81b">out</a>(chan, 0); }</div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  </div>
<div class="line"><a name="l00217"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#a6ab63168bc0e6550f441236732680a34"> 217</a></span>  <span class="keywordtype">void</span> <a class="code" href="classal_1_1_audio_i_o_data.html#a6ab63168bc0e6550f441236732680a34">sum</a>(<span class="keywordtype">float</span> v, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> chan)<span class="keyword"> const </span>{ <a class="code" href="classal_1_1_audio_i_o_data.html#a3c494d67bb1811dae0e92b64e13ab81b">out</a>(chan) += v; }</div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  </div>
<div class="line"><a name="l00220"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#aeb132d06807e4a0d08ea860864650db8"> 220</a></span>  <span class="keywordtype">void</span> <a class="code" href="classal_1_1_audio_i_o_data.html#aeb132d06807e4a0d08ea860864650db8">sum</a>(<span class="keywordtype">float</span> v, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ch1, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ch2)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <a class="code" href="classal_1_1_audio_i_o_data.html#a6ab63168bc0e6550f441236732680a34">sum</a>(v, ch1);</div>
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <a class="code" href="classal_1_1_audio_i_o_data.html#a6ab63168bc0e6550f441236732680a34">sum</a>(v, ch2);</div>
<div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  }</div>
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  </div>
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <span class="keywordtype">float</span>& <a class="code" href="classal_1_1_audio_i_o_data.html#abb7787db6c9e476824c1eaae05d3efa5">temp</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classal_1_1_audio_i_o_data.html#acf2eb648a99956f436493ceb371129e1">frame</a>) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  </div>
<div class="line"><a name="l00229"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#a35b29207813c46c6c4fd3162eac7f7a0"> 229</a></span>  <span class="keywordtype">float</span>* <a class="code" href="classal_1_1_audio_i_o_data.html#a35b29207813c46c6c4fd3162eac7f7a0">tempBuffer</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> &<a class="code" href="classal_1_1_audio_i_o_data.html#abb7787db6c9e476824c1eaae05d3efa5">temp</a>(0); }</div>
<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  </div>
<div class="line"><a name="l00231"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#a209fc05057bee488bf97ecdd22141dca"> 231</a></span>  <span class="keywordtype">void</span>* <a class="code" href="classal_1_1_audio_i_o_data.html#a209fc05057bee488bf97ecdd22141dca">user</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mUser; } </div>
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  </div>
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  <span class="keyword">template</span> <<span class="keyword">class</span> UserDataType></div>
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  UserDataType& <a class="code" href="classal_1_1_audio_i_o_data.html#a209fc05057bee488bf97ecdd22141dca">user</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  <span class="keywordflow">return</span> *(<span class="keyword">static_cast<</span>UserDataType*<span class="keyword">></span>(mUser));</div>
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  }</div>
<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  </div>
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  <span class="keywordtype">int</span> channels(<span class="keywordtype">bool</span> forOutput) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00239"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#aa8e6c4fcb13c25dd37498c4df07e5352"> 239</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classal_1_1_audio_i_o_data.html#aa8e6c4fcb13c25dd37498c4df07e5352">channelsIn</a>() <span class="keyword">const</span>; </div>
<div class="line"><a name="l00240"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#ab546ddad34586d23d7d30517ececcaec"> 240</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classal_1_1_audio_i_o_data.html#ab546ddad34586d23d7d30517ececcaec">channelsOut</a>()</div>
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  <span class="keyword">const</span>; </div>
<div class="line"><a name="l00242"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#ad7fa2e3d3d6b5b212bdd8e1959d49c58"> 242</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classal_1_1_audio_i_o_data.html#ad7fa2e3d3d6b5b212bdd8e1959d49c58">channelsBus</a>() <span class="keyword">const</span>; </div>
<div class="line"><a name="l00243"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#a1380ebbf44f7b304cfc5b845f659d1c6"> 243</a></span>  uint64_t <a class="code" href="classal_1_1_audio_i_o_data.html#a1380ebbf44f7b304cfc5b845f659d1c6">framesPerBuffer</a>() <span class="keyword">const</span>; </div>
<div class="line"><a name="l00244"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#a9740704353b18238a7394b89b6bcd466"> 244</a></span>  <span class="keywordtype">double</span> <a class="code" href="classal_1_1_audio_i_o_data.html#a9740704353b18238a7394b89b6bcd466">framesPerSecond</a>() <span class="keyword">const</span>; </div>
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <span class="keywordtype">double</span> fps()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classal_1_1_audio_i_o_data.html#a9740704353b18238a7394b89b6bcd466">framesPerSecond</a>(); }</div>
<div class="line"><a name="l00246"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#a226823efb711e660965a4f6b8d640b8a"> 246</a></span>  <span class="keywordtype">double</span> <a class="code" href="classal_1_1_audio_i_o_data.html#a226823efb711e660965a4f6b8d640b8a">secondsPerBuffer</a>() <span class="keyword">const</span>; </div>
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  </div>
<div class="line"><a name="l00248"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#a58e31521986b6f4fe996bd09605dab73"> 248</a></span>  <span class="keywordtype">void</span> <a class="code" href="classal_1_1_audio_i_o_data.html#a58e31521986b6f4fe996bd09605dab73">user</a>(<span class="keywordtype">void</span>* v) { mUser = v; } </div>
<div class="line"><a name="l00249"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#a4a02fd547fc05db0ae196b50ad5e21f7"> 249</a></span>  <span class="keywordtype">void</span> <a class="code" href="classal_1_1_audio_i_o_data.html#a4a02fd547fc05db0ae196b50ad5e21f7">frame</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> v) {</div>
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  assert(v >= 0);</div>
<div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  mFrame = v - 1;</div>
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  } </div>
<div class="line"><a name="l00253"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#a23ab9709a3bb19e2d480cda94770364f"> 253</a></span>  <span class="keywordtype">void</span> <a class="code" href="classal_1_1_audio_i_o_data.html#a23ab9709a3bb19e2d480cda94770364f">zeroBus</a>(); </div>
<div class="line"><a name="l00254"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#aab8dbc900ed8b557b62c509ffa10cf66"> 254</a></span>  <span class="keywordtype">void</span> <a class="code" href="classal_1_1_audio_i_o_data.html#aab8dbc900ed8b557b62c509ffa10cf66">zeroOut</a>(); </div>
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  </div>
<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  </div>
<div class="line"><a name="l00262"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#ac62147652d6d6fffabcebd5376457963"> 262</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classal_1_1_audio_i_o_data.html#ac62147652d6d6fffabcebd5376457963">channels</a>(<span class="keywordtype">int</span> num, <span class="keywordtype">bool</span> forOutput);</div>
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  </div>
<div class="line"><a name="l00264"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#ae9908c127e403bb536a24190840721e2"> 264</a></span>  <span class="keywordtype">void</span> <a class="code" href="classal_1_1_audio_i_o_data.html#ae9908c127e403bb536a24190840721e2">channelsIn</a>(<span class="keywordtype">int</span> n); </div>
<div class="line"><a name="l00265"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#afc06afa9464c8685a0bfd3c99089d94a"> 265</a></span>  <span class="keywordtype">void</span> <a class="code" href="classal_1_1_audio_i_o_data.html#afc06afa9464c8685a0bfd3c99089d94a">channelsOut</a>(<span class="keywordtype">int</span> n); </div>
<div class="line"><a name="l00266"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#a6421aa4c1348dae3eb54174544107c79"> 266</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classal_1_1_audio_i_o_data.html#a6421aa4c1348dae3eb54174544107c79">channelsBus</a>(<span class="keywordtype">int</span> num); </div>
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  </div>
<div class="line"><a name="l00268"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#a8690e4e0671d7379608fabcad0bffb1d"> 268</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classal_1_1_audio_i_o_data.html#a8690e4e0671d7379608fabcad0bffb1d">framesPerSecond</a>(<span class="keywordtype">double</span> v); </div>
<div class="line"><a name="l00269"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#a8f88d2c71dcd746f9b61e59e7c0d0246"> 269</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classal_1_1_audio_i_o_data.html#a8f88d2c71dcd746f9b61e59e7c0d0246">framesPerBuffer</a>(</div>
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> n); </div>
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  </div>
<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  <a class="code" href="classal_1_1_audio_i_o_data.html">AudioIOData</a>& gain(<span class="keywordtype">float</span> v) {</div>
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  mGain = v;</div>
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div>
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  }</div>
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <span class="keywordtype">bool</span> usingGain()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mGain != 1.f || mGainPrev != 1.f; }</div>
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  </div>
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  <span class="keywordtype">float</span> mGain, mGainPrev;</div>
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  </div>
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  <span class="keywordtype">void</span>* mUser; <span class="comment">// User specified data</span></div>
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  <span class="keyword">mutable</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> mFrame;</div>
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> mFramesPerBuffer;</div>
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  <span class="keywordtype">double</span> mFramesPerSecond;</div>
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  <span class="keywordtype">float</span> *mBufI, *mBufO, *mBufB; <span class="comment">// input, output, and aux buffers</span></div>
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  <span class="keywordtype">float</span>* mBufT; <span class="comment">// temporary one channel buffer</span></div>
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> mNumI, mNumO, mNumB; <span class="comment">// input, output, and aux channels</span></div>
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  </div>
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  <span class="keywordtype">void</span> resizeBuffer(<span class="keywordtype">bool</span> forOutput);</div>
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  </div>
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  <span class="keyword">private</span>:</div>
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="classal_1_1_audio_i_o_data.html#a6400d3ab75a5314a4d20620af979ca2f">AudioIOData</a>&); <span class="comment">// Disallow copy</span></div>
<div class="line"><a name="l00293"></a><span class="lineno"> 293</span> };</div>
<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  </div>
<div class="line"><a name="l00298"></a><span class="lineno"><a class="line" href="classal_1_1_audio_callback.html"> 298</a></span> <span class="keyword">class </span><a class="code" href="classal_1_1_audio_callback.html">AudioCallback</a> {</div>
<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  <span class="keyword">virtual</span> ~<a class="code" href="classal_1_1_audio_callback.html">AudioCallback</a>() {}</div>
<div class="line"><a name="l00301"></a><span class="lineno"><a class="line" href="classal_1_1_audio_callback.html#a3d0defdfc3c94459c344d9899dd15dc9"> 301</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classal_1_1_audio_callback.html#a3d0defdfc3c94459c344d9899dd15dc9">onAudioCB</a>(<a class="code" href="classal_1_1_audio_i_o_data.html">AudioIOData</a>& io) = 0; </div>
<div class="line"><a name="l00302"></a><span class="lineno"> 302</span> };</div>
<div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  </div>
<div class="line"><a name="l00304"></a><span class="lineno"> 304</span> <span class="comment">//==============================================================================</span></div>
<div class="line"><a name="l00305"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#ac009dfd4e8593e712147dcbe774f0b6f"> 305</a></span> <span class="keyword">inline</span> <span class="keywordtype">float</span>& <a class="code" href="classal_1_1_audio_i_o_data.html#a0de459c68b6efda81394475f0edf85e9">AudioIOData::bus</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> c, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> f)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  assert(c < mNumB);</div>
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  assert(f < <a class="code" href="classal_1_1_audio_i_o_data.html#a1380ebbf44f7b304cfc5b845f659d1c6">framesPerBuffer</a>());</div>
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  <span class="keywordflow">return</span> mBufB[c * <a class="code" href="classal_1_1_audio_i_o_data.html#a1380ebbf44f7b304cfc5b845f659d1c6">framesPerBuffer</a>() + f];</div>
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span> }</div>
<div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  </div>
<div class="line"><a name="l00311"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#a9832f757b8eebc0a8a76d1e335cbad62"> 311</a></span> <span class="keyword">inline</span> <span class="keyword">const</span> <span class="keywordtype">float</span>& <a class="code" href="classal_1_1_audio_i_o_data.html#a64f0a8d9eabe5410e0a6dfe3e1d38e92">AudioIOData::in</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> c, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> f)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  assert(c < mNumI);</div>
<div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  assert(f < <a class="code" href="classal_1_1_audio_i_o_data.html#a1380ebbf44f7b304cfc5b845f659d1c6">framesPerBuffer</a>());</div>
<div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  <span class="keywordflow">return</span> mBufI[c * <a class="code" href="classal_1_1_audio_i_o_data.html#a1380ebbf44f7b304cfc5b845f659d1c6">framesPerBuffer</a>() + f];</div>
<div class="line"><a name="l00315"></a><span class="lineno"> 315</span> }</div>
<div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  </div>
<div class="line"><a name="l00317"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#a02bd588fb043286151213a0f379f42e2"> 317</a></span> <span class="keyword">inline</span> <span class="keywordtype">float</span>& <a class="code" href="classal_1_1_audio_i_o_data.html#a3c494d67bb1811dae0e92b64e13ab81b">AudioIOData::out</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> c, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> f)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  assert(c < mNumO);</div>
<div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  assert(f < <a class="code" href="classal_1_1_audio_i_o_data.html#a1380ebbf44f7b304cfc5b845f659d1c6">framesPerBuffer</a>());</div>
<div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  <span class="keywordflow">return</span> mBufO[c * <a class="code" href="classal_1_1_audio_i_o_data.html#a1380ebbf44f7b304cfc5b845f659d1c6">framesPerBuffer</a>() + f];</div>
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span> }</div>
<div class="line"><a name="l00322"></a><span class="lineno"><a class="line" href="classal_1_1_audio_i_o_data.html#abb7787db6c9e476824c1eaae05d3efa5"> 322</a></span> <span class="keyword">inline</span> <span class="keywordtype">float</span>& <a class="code" href="classal_1_1_audio_i_o_data.html#abb7787db6c9e476824c1eaae05d3efa5">AudioIOData::temp</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> f)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mBufT[f]; }</div>
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  </div>
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span> } <span class="comment">// namespace al</span></div>
<div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  </div>
<div class="line"><a name="l00326"></a><span class="lineno"> 326</span> <span class="preprocessor">#endif</span></div>
<div class="ttc" id="aclassal_1_1_audio_callback_html"><div class="ttname"><a href="classal_1_1_audio_callback.html">al::AudioCallback</a></div><div class="ttdef"><b>Definition:</b> <a href="al___audio_i_o_data_8hpp_source.html#l00298">al_AudioIOData.hpp:298</a></div></div>
<div class="ttc" id="aclassal_1_1_audio_callback_html_a3d0defdfc3c94459c344d9899dd15dc9"><div class="ttname"><a href="classal_1_1_audio_callback.html#a3d0defdfc3c94459c344d9899dd15dc9">al::AudioCallback::onAudioCB</a></div><div class="ttdeci">virtual void onAudioCB(AudioIOData &io)=0</div><div class="ttdoc">Callback.</div></div>
<div class="ttc" id="aclassal_1_1_audio_device_info_html"><div class="ttname"><a href="classal_1_1_audio_device_info.html">al::AudioDeviceInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="al___audio_i_o_data_8hpp_source.html#l00111">al_AudioIOData.hpp:111</a></div></div>
<div class="ttc" id="aclassal_1_1_audio_device_info_html_a11883b2115d2a6c4e6d7cd6e4773ddf8"><div class="ttname"><a href="classal_1_1_audio_device_info.html#a11883b2115d2a6c4e6d7cd6e4773ddf8">al::AudioDeviceInfo::hasInput</a></div><div class="ttdeci">virtual bool hasInput() const =0</div><div class="ttdoc">Returns whether device has input.</div></div>
<div class="ttc" id="aclassal_1_1_audio_device_info_html_a15c33759f11a87a0ec7a4c3c86f831a2"><div class="ttname"><a href="classal_1_1_audio_device_info.html#a15c33759f11a87a0ec7a4c3c86f831a2">al::AudioDeviceInfo::channelsOutMax</a></div><div class="ttdeci">virtual int channelsOutMax() const</div><div class="ttdoc">Get maximum number of output channels supported.</div></div>
<div class="ttc" id="aclassal_1_1_audio_device_info_html_a4b3da1682a7fafb6fe976c59efe44c6f"><div class="ttname"><a href="classal_1_1_audio_device_info.html#a4b3da1682a7fafb6fe976c59efe44c6f">al::AudioDeviceInfo::channelsInMax</a></div><div class="ttdeci">virtual int channelsInMax() const</div><div class="ttdoc">Get maximum number of input channels supported.</div></div>
<div class="ttc" id="aclassal_1_1_audio_device_info_html_a4f638ec8269e533dfd1b79d378175a06"><div class="ttname"><a href="classal_1_1_audio_device_info.html#a4f638ec8269e533dfd1b79d378175a06">al::AudioDeviceInfo::setChannelsInMax</a></div><div class="ttdeci">virtual void setChannelsInMax(int num)</div><div class="ttdoc">Sets maximum number of Input channels supported.</div></div>
<div class="ttc" id="aclassal_1_1_audio_device_info_html_a53b6011616ecf4eb905249982a6dd750"><div class="ttname"><a href="classal_1_1_audio_device_info.html#a53b6011616ecf4eb905249982a6dd750">al::AudioDeviceInfo::setID</a></div><div class="ttdeci">virtual void setID(int iD)</div><div class="ttdoc">Sets unique ID.</div></div>
<div class="ttc" id="aclassal_1_1_audio_device_info_html_a5449580e23adeb840b2fd7a684c2f5d0"><div class="ttname"><a href="classal_1_1_audio_device_info.html#a5449580e23adeb840b2fd7a684c2f5d0">al::AudioDeviceInfo::StreamMode</a></div><div class="ttdeci">StreamMode</div><div class="ttdoc">Stream mode.</div><div class="ttdef"><b>Definition:</b> <a href="al___audio_i_o_data_8hpp_source.html#l00114">al_AudioIOData.hpp:114</a></div></div>
<div class="ttc" id="aclassal_1_1_audio_device_info_html_a5449580e23adeb840b2fd7a684c2f5d0a2aacd1d3abc8d563f822724428ce145f"><div class="ttname"><a href="classal_1_1_audio_device_info.html#a5449580e23adeb840b2fd7a684c2f5d0a2aacd1d3abc8d563f822724428ce145f">al::AudioDeviceInfo::INPUT</a></div><div class="ttdeci">@ INPUT</div><div class="ttdef"><b>Definition:</b> <a href="al___audio_i_o_data_8hpp_source.html#l00115">al_AudioIOData.hpp:115</a></div></div>
<div class="ttc" id="aclassal_1_1_audio_device_info_html_a5449580e23adeb840b2fd7a684c2f5d0a389a6c8ce57e506e21b134611bf921c4"><div class="ttname"><a href="classal_1_1_audio_device_info.html#a5449580e23adeb840b2fd7a684c2f5d0a389a6c8ce57e506e21b134611bf921c4">al::AudioDeviceInfo::OUTPUT</a></div><div class="ttdeci">@ OUTPUT</div><div class="ttdef"><b>Definition:</b> <a href="al___audio_i_o_data_8hpp_source.html#l00117">al_AudioIOData.hpp:116</a></div></div>
<div class="ttc" id="aclassal_1_1_audio_device_info_html_a592ba3cc9bc2f5019d0b8cd89c36357e"><div class="ttname"><a href="classal_1_1_audio_device_info.html#a592ba3cc9bc2f5019d0b8cd89c36357e">al::AudioDeviceInfo::id</a></div><div class="ttdeci">virtual int id() const</div><div class="ttdoc">Get device unique ID.</div></div>
<div class="ttc" id="aclassal_1_1_audio_device_info_html_a66329e31b5643522455df80572962f09"><div class="ttname"><a href="classal_1_1_audio_device_info.html#a66329e31b5643522455df80572962f09">al::AudioDeviceInfo::setName</a></div><div class="ttdeci">virtual void setName(char *name)</div><div class="ttdoc">Sets device name.</div></div>
<div class="ttc" id="aclassal_1_1_audio_device_info_html_a6b0821a5bc7c19f4425f9fc130ed9a3e"><div class="ttname"><a href="classal_1_1_audio_device_info.html#a6b0821a5bc7c19f4425f9fc130ed9a3e">al::AudioDeviceInfo::print</a></div><div class="ttdeci">virtual void print() const =0</div><div class="ttdoc">Prints info about specific i/o device to stdout.</div></div>
<div class="ttc" id="aclassal_1_1_audio_device_info_html_a71d92951e1a2f0c0d703e3c2ac3622fc"><div class="ttname"><a href="classal_1_1_audio_device_info.html#a71d92951e1a2f0c0d703e3c2ac3622fc">al::AudioDeviceInfo::defaultSampleRate</a></div><div class="ttdeci">virtual double defaultSampleRate() const</div><div class="ttdoc">Get default sample rate.</div></div>
<div class="ttc" id="aclassal_1_1_audio_device_info_html_a89795acfbd1966856f459d876a66f801"><div class="ttname"><a href="classal_1_1_audio_device_info.html#a89795acfbd1966856f459d876a66f801">al::AudioDeviceInfo::valid</a></div><div class="ttdeci">virtual bool valid() const</div><div class="ttdoc">Returns whether device is valid.</div></div>
<div class="ttc" id="aclassal_1_1_audio_device_info_html_a8e7b3aeeb7e60b125c41071508c8c932"><div class="ttname"><a href="classal_1_1_audio_device_info.html#a8e7b3aeeb7e60b125c41071508c8c932">al::AudioDeviceInfo::name</a></div><div class="ttdeci">virtual const char * name() const</div><div class="ttdoc">Get device name.</div></div>
<div class="ttc" id="aclassal_1_1_audio_device_info_html_aa825e58e22b6c89ccfe0f28c6dc75c55"><div class="ttname"><a href="classal_1_1_audio_device_info.html#aa825e58e22b6c89ccfe0f28c6dc75c55">al::AudioDeviceInfo::hasOutput</a></div><div class="ttdeci">virtual bool hasOutput() const =0</div><div class="ttdoc">Returns whether device has output.</div></div>
<div class="ttc" id="aclassal_1_1_audio_device_info_html_aadb9e8b6a1bb272e3ddd2bb0aff9ae9d"><div class="ttname"><a href="classal_1_1_audio_device_info.html#aadb9e8b6a1bb272e3ddd2bb0aff9ae9d">al::AudioDeviceInfo::setChannelsOutMax</a></div><div class="ttdeci">virtual void setChannelsOutMax(int num)</div><div class="ttdoc">Sets maximum number of Output channels supported.</div></div>
<div class="ttc" id="aclassal_1_1_audio_device_info_html_ab2fffde088fbccadd33ed904f89ebc6d"><div class="ttname"><a href="classal_1_1_audio_device_info.html#ab2fffde088fbccadd33ed904f89ebc6d">al::AudioDeviceInfo::setDefaultSampleRate</a></div><div class="ttdeci">virtual void setDefaultSampleRate(double rate)</div><div class="ttdoc">Sets default sample rate.</div></div>
<div class="ttc" id="aclassal_1_1_audio_device_info_html_abce41c8649acef7e15728091f46dd6f6"><div class="ttname"><a href="classal_1_1_audio_device_info.html#abce41c8649acef7e15728091f46dd6f6">al::AudioDeviceInfo::AudioDeviceInfo</a></div><div class="ttdeci">AudioDeviceInfo(int deviceNum)</div></div>
<div class="ttc" id="aclassal_1_1_audio_i_o_data_html"><div class="ttname"><a href="classal_1_1_audio_i_o_data.html">al::AudioIOData</a></div><div class="ttdef"><b>Definition:</b> <a href="al___audio_i_o_data_8hpp_source.html#l00174">al_AudioIOData.hpp:174</a></div></div>
<div class="ttc" id="aclassal_1_1_audio_i_o_data_html_a0de459c68b6efda81394475f0edf85e9"><div class="ttname"><a href="classal_1_1_audio_i_o_data.html#a0de459c68b6efda81394475f0edf85e9">al::AudioIOData::bus</a></div><div class="ttdeci">float & bus(unsigned int chan) const</div><div class="ttdoc">Get bus sample at current frame iteration on specified channel.</div><div class="ttdef"><b>Definition:</b> <a href="al___audio_i_o_data_8hpp_source.html#l00190">al_AudioIOData.hpp:190</a></div></div>
<div class="ttc" id="aclassal_1_1_audio_i_o_data_html_a1380ebbf44f7b304cfc5b845f659d1c6"><div class="ttname"><a href="classal_1_1_audio_i_o_data.html#a1380ebbf44f7b304cfc5b845f659d1c6">al::AudioIOData::framesPerBuffer</a></div><div class="ttdeci">uint64_t framesPerBuffer() const</div><div class="ttdoc">Get frames/buffer of audio I/O stream.</div></div>
<div class="ttc" id="aclassal_1_1_audio_i_o_data_html_a209fc05057bee488bf97ecdd22141dca"><div class="ttname"><a href="classal_1_1_audio_i_o_data.html#a209fc05057bee488bf97ecdd22141dca">al::AudioIOData::user</a></div><div class="ttdeci">void * user() const</div><div class="ttdoc">Get pointer to user data.</div><div class="ttdef"><b>Definition:</b> <a href="al___audio_i_o_data_8hpp_source.html#l00231">al_AudioIOData.hpp:231</a></div></div>
<div class="ttc" id="aclassal_1_1_audio_i_o_data_html_a226823efb711e660965a4f6b8d640b8a"><div class="ttname"><a href="classal_1_1_audio_i_o_data.html#a226823efb711e660965a4f6b8d640b8a">al::AudioIOData::secondsPerBuffer</a></div><div class="ttdeci">double secondsPerBuffer() const</div><div class="ttdoc">Get seconds/buffer of audio I/O stream.</div></div>
<div class="ttc" id="aclassal_1_1_audio_i_o_data_html_a23ab9709a3bb19e2d480cda94770364f"><div class="ttname"><a href="classal_1_1_audio_i_o_data.html#a23ab9709a3bb19e2d480cda94770364f">al::AudioIOData::zeroBus</a></div><div class="ttdeci">void zeroBus()</div><div class="ttdoc">Zeros all the bus buffers.</div></div>
<div class="ttc" id="aclassal_1_1_audio_i_o_data_html_a35b29207813c46c6c4fd3162eac7f7a0"><div class="ttname"><a href="classal_1_1_audio_i_o_data.html#a35b29207813c46c6c4fd3162eac7f7a0">al::AudioIOData::tempBuffer</a></div><div class="ttdeci">float * tempBuffer() const</div><div class="ttdoc">Get non-interleaved temporary buffer on specified channel.</div><div class="ttdef"><b>Definition:</b> <a href="al___audio_i_o_data_8hpp_source.html#l00229">al_AudioIOData.hpp:229</a></div></div>
<div class="ttc" id="aclassal_1_1_audio_i_o_data_html_a3c494d67bb1811dae0e92b64e13ab81b"><div class="ttname"><a href="classal_1_1_audio_i_o_data.html#a3c494d67bb1811dae0e92b64e13ab81b">al::AudioIOData::out</a></div><div class="ttdeci">float & out(unsigned int chan) const</div><div class="ttdoc">Get output sample at current frame iteration on specified channel.</div><div class="ttdef"><b>Definition:</b> <a href="al___audio_i_o_data_8hpp_source.html#l00208">al_AudioIOData.hpp:208</a></div></div>
<div class="ttc" id="aclassal_1_1_audio_i_o_data_html_a4a02fd547fc05db0ae196b50ad5e21f7"><div class="ttname"><a href="classal_1_1_audio_i_o_data.html#a4a02fd547fc05db0ae196b50ad5e21f7">al::AudioIOData::frame</a></div><div class="ttdeci">void frame(unsigned int v)</div><div class="ttdoc">Set frame count for next iteration.</div><div class="ttdef"><b>Definition:</b> <a href="al___audio_i_o_data_8hpp_source.html#l00249">al_AudioIOData.hpp:249</a></div></div>
<div class="ttc" id="aclassal_1_1_audio_i_o_data_html_a58e31521986b6f4fe996bd09605dab73"><div class="ttname"><a href="classal_1_1_audio_i_o_data.html#a58e31521986b6f4fe996bd09605dab73">al::AudioIOData::user</a></div><div class="ttdeci">void user(void *v)</div><div class="ttdoc">Set user data.</div><div class="ttdef"><b>Definition:</b> <a href="al___audio_i_o_data_8hpp_source.html#l00248">al_AudioIOData.hpp:248</a></div></div>
<div class="ttc" id="aclassal_1_1_audio_i_o_data_html_a6400d3ab75a5314a4d20620af979ca2f"><div class="ttname"><a href="classal_1_1_audio_i_o_data.html#a6400d3ab75a5314a4d20620af979ca2f">al::AudioIOData::AudioIOData</a></div><div class="ttdeci">AudioIOData(void *user=nullptr)</div><div class="ttdoc">Constructor.</div></div>
<div class="ttc" id="aclassal_1_1_audio_i_o_data_html_a6421aa4c1348dae3eb54174544107c79"><div class="ttname"><a href="classal_1_1_audio_i_o_data.html#a6421aa4c1348dae3eb54174544107c79">al::AudioIOData::channelsBus</a></div><div class="ttdeci">virtual void channelsBus(int num)</div><div class="ttdoc">Set number of bus channels.</div></div>
<div class="ttc" id="aclassal_1_1_audio_i_o_data_html_a64f0a8d9eabe5410e0a6dfe3e1d38e92"><div class="ttname"><a href="classal_1_1_audio_i_o_data.html#a64f0a8d9eabe5410e0a6dfe3e1d38e92">al::AudioIOData::in</a></div><div class="ttdeci">const float & in(unsigned int chan) const</div><div class="ttdoc">Get input sample at current frame iteration on specified channel.</div><div class="ttdef"><b>Definition:</b> <a href="al___audio_i_o_data_8hpp_source.html#l00199">al_AudioIOData.hpp:199</a></div></div>
<div class="ttc" id="aclassal_1_1_audio_i_o_data_html_a660238307d4b9186e8fd0201e354c23a"><div class="ttname"><a href="classal_1_1_audio_i_o_data.html#a660238307d4b9186e8fd0201e354c23a">al::AudioIOData::outBuffer</a></div><div class="ttdeci">float * outBuffer(unsigned int chan=0) const</div><div class="ttdoc">Get non-interleaved output buffer on specified channel.</div><div class="ttdef"><b>Definition:</b> <a href="al___audio_i_o_data_8hpp_source.html#l00214">al_AudioIOData.hpp:214</a></div></div>
<div class="ttc" id="aclassal_1_1_audio_i_o_data_html_a6ab63168bc0e6550f441236732680a34"><div class="ttname"><a href="classal_1_1_audio_i_o_data.html#a6ab63168bc0e6550f441236732680a34">al::AudioIOData::sum</a></div><div class="ttdeci">void sum(float v, unsigned int chan) const</div><div class="ttdoc">Add value to current output sample on specified channel.</div><div class="ttdef"><b>Definition:</b> <a href="al___audio_i_o_data_8hpp_source.html#l00217">al_AudioIOData.hpp:217</a></div></div>
<div class="ttc" id="aclassal_1_1_audio_i_o_data_html_a8690e4e0671d7379608fabcad0bffb1d"><div class="ttname"><a href="classal_1_1_audio_i_o_data.html#a8690e4e0671d7379608fabcad0bffb1d">al::AudioIOData::framesPerSecond</a></div><div class="ttdeci">virtual void framesPerSecond(double v)</div><div class="ttdoc">Set number of frames per second.</div></div>
<div class="ttc" id="aclassal_1_1_audio_i_o_data_html_a8f88d2c71dcd746f9b61e59e7c0d0246"><div class="ttname"><a href="classal_1_1_audio_i_o_data.html#a8f88d2c71dcd746f9b61e59e7c0d0246">al::AudioIOData::framesPerBuffer</a></div><div class="ttdeci">virtual void framesPerBuffer(unsigned int n)</div><div class="ttdoc">Set number of frames per processing buffer.</div></div>
<div class="ttc" id="aclassal_1_1_audio_i_o_data_html_a91cc426fb9acd48c72be85665c3b59f2"><div class="ttname"><a href="classal_1_1_audio_i_o_data.html#a91cc426fb9acd48c72be85665c3b59f2">al::AudioIOData::inBuffer</a></div><div class="ttdeci">const float * inBuffer(unsigned int chan=0) const</div><div class="ttdoc">Get non-interleaved input buffer on specified channel.</div><div class="ttdef"><b>Definition:</b> <a href="al___audio_i_o_data_8hpp_source.html#l00205">al_AudioIOData.hpp:205</a></div></div>
<div class="ttc" id="aclassal_1_1_audio_i_o_data_html_a9740704353b18238a7394b89b6bcd466"><div class="ttname"><a href="classal_1_1_audio_i_o_data.html#a9740704353b18238a7394b89b6bcd466">al::AudioIOData::framesPerSecond</a></div><div class="ttdeci">double framesPerSecond() const</div><div class="ttdoc">Get frames/second of audio I/O streams.</div></div>
<div class="ttc" id="aclassal_1_1_audio_i_o_data_html_aa252f47ea8e512ef32e85000bf33e653"><div class="ttname"><a href="classal_1_1_audio_i_o_data.html#aa252f47ea8e512ef32e85000bf33e653">al::AudioIOData::operator()</a></div><div class="ttdeci">bool operator()() const</div><div class="ttdoc">Iterate frame counter, returning true while more frames.</div><div class="ttdef"><b>Definition:</b> <a href="al___audio_i_o_data_8hpp_source.html#l00184">al_AudioIOData.hpp:184</a></div></div>
<div class="ttc" id="aclassal_1_1_audio_i_o_data_html_aa8e6c4fcb13c25dd37498c4df07e5352"><div class="ttname"><a href="classal_1_1_audio_i_o_data.html#aa8e6c4fcb13c25dd37498c4df07e5352">al::AudioIOData::channelsIn</a></div><div class="ttdeci">unsigned int channelsIn() const</div><div class="ttdoc">Get effective number of input channels.</div></div>
<div class="ttc" id="aclassal_1_1_audio_i_o_data_html_aaa1b5ae5a1d7abfcd7e7e7374eb07583"><div class="ttname"><a href="classal_1_1_audio_i_o_data.html#aaa1b5ae5a1d7abfcd7e7e7374eb07583">al::AudioIOData::busBuffer</a></div><div class="ttdeci">float * busBuffer(unsigned int chan=0) const</div><div class="ttdoc">Get non-interleaved bus buffer on specified channel.</div><div class="ttdef"><b>Definition:</b> <a href="al___audio_i_o_data_8hpp_source.html#l00196">al_AudioIOData.hpp:196</a></div></div>
<div class="ttc" id="aclassal_1_1_audio_i_o_data_html_aab8dbc900ed8b557b62c509ffa10cf66"><div class="ttname"><a href="classal_1_1_audio_i_o_data.html#aab8dbc900ed8b557b62c509ffa10cf66">al::AudioIOData::zeroOut</a></div><div class="ttdeci">void zeroOut()</div><div class="ttdoc">Zeros all the internal output buffers.</div></div>
<div class="ttc" id="aclassal_1_1_audio_i_o_data_html_ab546ddad34586d23d7d30517ececcaec"><div class="ttname"><a href="classal_1_1_audio_i_o_data.html#ab546ddad34586d23d7d30517ececcaec">al::AudioIOData::channelsOut</a></div><div class="ttdeci">unsigned int channelsOut() const</div><div class="ttdoc">Get effective number of output channels.</div></div>
<div class="ttc" id="aclassal_1_1_audio_i_o_data_html_abb7787db6c9e476824c1eaae05d3efa5"><div class="ttname"><a href="classal_1_1_audio_i_o_data.html#abb7787db6c9e476824c1eaae05d3efa5">al::AudioIOData::temp</a></div><div class="ttdeci">float & temp(unsigned int frame) const</div><div class="ttdoc">Get sample from temporary buffer at specified frame.</div><div class="ttdef"><b>Definition:</b> <a href="al___audio_i_o_data_8hpp_source.html#l00322">al_AudioIOData.hpp:322</a></div></div>
<div class="ttc" id="aclassal_1_1_audio_i_o_data_html_ac62147652d6d6fffabcebd5376457963"><div class="ttname"><a href="classal_1_1_audio_i_o_data.html#ac62147652d6d6fffabcebd5376457963">al::AudioIOData::channels</a></div><div class="ttdeci">virtual void channels(int num, bool forOutput)</div></div>
<div class="ttc" id="aclassal_1_1_audio_i_o_data_html_acf2eb648a99956f436493ceb371129e1"><div class="ttname"><a href="classal_1_1_audio_i_o_data.html#acf2eb648a99956f436493ceb371129e1">al::AudioIOData::frame</a></div><div class="ttdeci">unsigned int frame() const</div><div class="ttdoc">Get current frame number.</div><div class="ttdef"><b>Definition:</b> <a href="al___audio_i_o_data_8hpp_source.html#l00187">al_AudioIOData.hpp:187</a></div></div>
<div class="ttc" id="aclassal_1_1_audio_i_o_data_html_ad7fa2e3d3d6b5b212bdd8e1959d49c58"><div class="ttname"><a href="classal_1_1_audio_i_o_data.html#ad7fa2e3d3d6b5b212bdd8e1959d49c58">al::AudioIOData::channelsBus</a></div><div class="ttdeci">unsigned int channelsBus() const</div><div class="ttdoc">Get number of allocated bus channels.</div></div>
<div class="ttc" id="aclassal_1_1_audio_i_o_data_html_ae9908c127e403bb536a24190840721e2"><div class="ttname"><a href="classal_1_1_audio_i_o_data.html#ae9908c127e403bb536a24190840721e2">al::AudioIOData::channelsIn</a></div><div class="ttdeci">void channelsIn(int n)</div><div class="ttdoc">Set number of input channels.</div></div>
<div class="ttc" id="aclassal_1_1_audio_i_o_data_html_aeb132d06807e4a0d08ea860864650db8"><div class="ttname"><a href="classal_1_1_audio_i_o_data.html#aeb132d06807e4a0d08ea860864650db8">al::AudioIOData::sum</a></div><div class="ttdeci">void sum(float v, unsigned int ch1, unsigned int ch2) const</div><div class="ttdoc">Add value to current output sample on specified channels.</div><div class="ttdef"><b>Definition:</b> <a href="al___audio_i_o_data_8hpp_source.html#l00220">al_AudioIOData.hpp:220</a></div></div>
<div class="ttc" id="aclassal_1_1_audio_i_o_data_html_afc06afa9464c8685a0bfd3c99089d94a"><div class="ttname"><a href="classal_1_1_audio_i_o_data.html#afc06afa9464c8685a0bfd3c99089d94a">al::AudioIOData::channelsOut</a></div><div class="ttdeci">void channelsOut(int n)</div><div class="ttdoc">Set number of output channels.</div></div>
<div class="ttc" id="anamespaceal_html"><div class="ttname"><a href="namespaceal.html">al</a></div><div class="ttdef"><b>Definition:</b> <a href="al___app_8hpp_source.html#l00023">al_App.hpp:23</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_e6bb53534ac0e427887cf7a94c0c004e.html">C:</a></li><li class="navelem"><a class="el" href="dir_8ceffd4ee35c3518d4e8bdc7e638efe8.html">Users</a></li><li class="navelem"><a class="el" href="dir_d934af30b392b1c85e577a193a4f44d7.html">Andres</a></li><li class="navelem"><a class="el" href="dir_e68da7aceac684d2d8b9f1b11e1c2d97.html">source</a></li><li class="navelem"><a class="el" href="dir_fcc7705357f5b24b756c781e261be61a.html">repos</a></li><li class="navelem"><a class="el" href="dir_c3c6d9593ff25ad9938aa507653e60f1.html">casm_viewer</a></li><li class="navelem"><a class="el" href="dir_62b775495639e85334a47dd0b350fd78.html">external</a></li><li class="navelem"><a class="el" href="dir_b57b95b4f0b0651157add3c4117135ea.html">tinc</a></li><li class="navelem"><a class="el" href="dir_a51c8fbca25ad649a2e41de73b4ed7a8.html">external</a></li><li class="navelem"><a class="el" href="dir_f6b0d4003da5aa0ecdbed61a62e8b0a3.html">allolib</a></li><li class="navelem"><a class="el" href="dir_1a17cbf7a13c3de19497337dcee9a11d.html">include</a></li><li class="navelem"><a class="el" href="dir_c24702039c85b0e1007cbbfcdd096437.html">al</a></li><li class="navelem"><a class="el" href="dir_5126b2b21a27efd254cc88c1290fecbf.html">io</a></li><li class="navelem"><b>al_AudioIOData.hpp</b></li>
<li class="footer">Generated on Thu Apr 8 2021 13:24:22 for Allolib by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
</ul>
</div>
</body>
</html>