-
Notifications
You must be signed in to change notification settings - Fork 1
/
classrespeaker_1_1FileCollectorNode.html
441 lines (423 loc) · 32.4 KB
/
classrespeaker_1_1FileCollectorNode.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" "http://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.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>librespeaker: respeaker::FileCollectorNode Class Reference</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="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">librespeaker
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<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');
/* @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>
<!-- 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 id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacerespeaker.html">respeaker</a></li><li class="navelem"><a class="el" href="classrespeaker_1_1FileCollectorNode.html">FileCollectorNode</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pub-static-methods">Static Public Member Functions</a> |
<a href="classrespeaker_1_1FileCollectorNode-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">respeaker::FileCollectorNode Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for respeaker::FileCollectorNode:</div>
<div class="dyncontent">
<div class="center">
<img src="classrespeaker_1_1FileCollectorNode.png" usemap="#respeaker::FileCollectorNode_map" alt=""/>
<map id="respeaker::FileCollectorNode_map" name="respeaker::FileCollectorNode_map">
<area href="classrespeaker_1_1BaseNode.html" alt="respeaker::BaseNode" shape="rect" coords="0,0,177,24"/>
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ab48f5942f1b7154654d65844e600dd26"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classrespeaker_1_1FileCollectorNode.html#ab48f5942f1b7154654d65844e600dd26">OnStartThread</a> ()=0</td></tr>
<tr class="separator:ab48f5942f1b7154654d65844e600dd26"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3cfd8d18a6da06cd258c176bc27350af"><td class="memItemLeft" align="right" valign="top">virtual std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classrespeaker_1_1FileCollectorNode.html#a3cfd8d18a6da06cd258c176bc27350af">FetchBlock</a> (bool &exit)=0</td></tr>
<tr class="separator:a3cfd8d18a6da06cd258c176bc27350af"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac5dfb2c9cba997149cf5dcbe4a1f5726"><td class="memItemLeft" align="right" valign="top">virtual std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classrespeaker_1_1FileCollectorNode.html#ac5dfb2c9cba997149cf5dcbe4a1f5726">ProcessBlock</a> (std::string block, bool &exit)=0</td></tr>
<tr class="separator:ac5dfb2c9cba997149cf5dcbe4a1f5726"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a66c1608adeed13ce599293e9aa8d2e75"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classrespeaker_1_1FileCollectorNode.html#a66c1608adeed13ce599293e9aa8d2e75">OnJoinThread</a> ()=0</td></tr>
<tr class="separator:a66c1608adeed13ce599293e9aa8d2e75"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a957ecd88d8f6d573f8e20bf5ba1c9da9"><td class="memItemLeft" align="right" valign="top"><a id="a957ecd88d8f6d573f8e20bf5ba1c9da9"></a>
virtual void </td><td class="memItemRight" valign="bottom"><b>Pause</b> ()=0</td></tr>
<tr class="separator:a957ecd88d8f6d573f8e20bf5ba1c9da9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a79e4c5b69e61124d9cdc3f80803c5089"><td class="memItemLeft" align="right" valign="top"><a id="a79e4c5b69e61124d9cdc3f80803c5089"></a>
virtual void </td><td class="memItemRight" valign="bottom"><b>Resume</b> ()=0</td></tr>
<tr class="separator:a79e4c5b69e61124d9cdc3f80803c5089"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pub_methods_classrespeaker_1_1BaseNode"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classrespeaker_1_1BaseNode')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classrespeaker_1_1BaseNode.html">respeaker::BaseNode</a></td></tr>
<tr class="memitem:aa64e2eb930291b7763f6d18a8ef16e49 inherit pub_methods_classrespeaker_1_1BaseNode"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classrespeaker_1_1BaseNode.html">BaseNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classrespeaker_1_1BaseNode.html#aa64e2eb930291b7763f6d18a8ef16e49">GetId</a> ()</td></tr>
<tr class="separator:aa64e2eb930291b7763f6d18a8ef16e49 inherit pub_methods_classrespeaker_1_1BaseNode"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a786258a66118b4681fe77124dfe87ea4 inherit pub_methods_classrespeaker_1_1BaseNode"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classrespeaker_1_1BaseNode.html#a786258a66118b4681fe77124dfe87ea4">Uplink</a> (<a class="el" href="classrespeaker_1_1BaseNode.html">BaseNode</a> *uplink_node)</td></tr>
<tr class="separator:a786258a66118b4681fe77124dfe87ea4 inherit pub_methods_classrespeaker_1_1BaseNode"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa8b902a4e5fdb9ebdb276bcb9546a53a inherit pub_methods_classrespeaker_1_1BaseNode"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classrespeaker_1_1BaseNode.html#aa8b902a4e5fdb9ebdb276bcb9546a53a">RegisterDownlinkNode</a> (<a class="el" href="classrespeaker_1_1BaseNode.html">BaseNode</a> *downlink_node)</td></tr>
<tr class="separator:aa8b902a4e5fdb9ebdb276bcb9546a53a inherit pub_methods_classrespeaker_1_1BaseNode"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a54f95dc810c69f48af08e3f0770432de inherit pub_methods_classrespeaker_1_1BaseNode"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structrespeaker_1_1NodeParameter.html">NodeParameter</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classrespeaker_1_1BaseNode.html#a54f95dc810c69f48af08e3f0770432de">GetNodeOutputParameter</a> ()</td></tr>
<tr class="separator:a54f95dc810c69f48af08e3f0770432de inherit pub_methods_classrespeaker_1_1BaseNode"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9a1492da1aba5ad1c28e4824a0fdce2b inherit pub_methods_classrespeaker_1_1BaseNode"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classrespeaker_1_1BaseNode.html#a9a1492da1aba5ad1c28e4824a0fdce2b">RecursivelyStartThread</a> (<a class="el" href="structrespeaker_1_1ChainSharedData.html">ChainSharedData</a> *shared_data)</td></tr>
<tr class="separator:a9a1492da1aba5ad1c28e4824a0fdce2b inherit pub_methods_classrespeaker_1_1BaseNode"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3b6a49ceda9ded7386bad53bff315458 inherit pub_methods_classrespeaker_1_1BaseNode"><td class="memItemLeft" align="right" valign="top"><a id="a3b6a49ceda9ded7386bad53bff315458"></a>
bool </td><td class="memItemRight" valign="bottom"><b>RecursivelyJoinThread</b> ()</td></tr>
<tr class="separator:a3b6a49ceda9ded7386bad53bff315458 inherit pub_methods_classrespeaker_1_1BaseNode"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a70a1aabbbe47c6f686239defb81d2ac5 inherit pub_methods_classrespeaker_1_1BaseNode"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classrespeaker_1_1BaseNode.html#a70a1aabbbe47c6f686239defb81d2ac5">StoreBlock</a> (std::string block, bool &exit)</td></tr>
<tr class="separator:a70a1aabbbe47c6f686239defb81d2ac5 inherit pub_methods_classrespeaker_1_1BaseNode"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a993ac61f2ca80601d6188d957bef7102 inherit pub_methods_classrespeaker_1_1BaseNode"><td class="memItemLeft" align="right" valign="top"><a id="a993ac61f2ca80601d6188d957bef7102"></a>
std::mutex * </td><td class="memItemRight" valign="bottom"><b>GetDownlinkDataQueueMutex</b> (<a class="el" href="classrespeaker_1_1BaseNode.html">BaseNode</a> *downlink_node_id=nullptr)</td></tr>
<tr class="separator:a993ac61f2ca80601d6188d957bef7102 inherit pub_methods_classrespeaker_1_1BaseNode"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae332245863119fbd720fd642a3ca0410 inherit pub_methods_classrespeaker_1_1BaseNode"><td class="memItemLeft" align="right" valign="top"><a id="ae332245863119fbd720fd642a3ca0410"></a>
std::condition_variable * </td><td class="memItemRight" valign="bottom"><b>GetDownlinkDataQueueConditionVar</b> (<a class="el" href="classrespeaker_1_1BaseNode.html">BaseNode</a> *downlink_node_id=nullptr)</td></tr>
<tr class="separator:ae332245863119fbd720fd642a3ca0410 inherit pub_methods_classrespeaker_1_1BaseNode"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4fbb35dc03773338d05cff433abadb6d inherit pub_methods_classrespeaker_1_1BaseNode"><td class="memItemLeft" align="right" valign="top"><a id="a4fbb35dc03773338d05cff433abadb6d"></a>
std::queue< std::string > & </td><td class="memItemRight" valign="bottom"><b>GetDownlinkDataQueue</b> (<a class="el" href="classrespeaker_1_1BaseNode.html">BaseNode</a> *downlink_node_id=nullptr)</td></tr>
<tr class="separator:a4fbb35dc03773338d05cff433abadb6d inherit pub_methods_classrespeaker_1_1BaseNode"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aeb2d0e40fc228d2d6a7c714837cba496 inherit pub_methods_classrespeaker_1_1BaseNode"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classrespeaker_1_1BaseNode.html#aeb2d0e40fc228d2d6a7c714837cba496">GetQueueDeepth</a> ()</td></tr>
<tr class="separator:aeb2d0e40fc228d2d6a7c714837cba496 inherit pub_methods_classrespeaker_1_1BaseNode"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a72e3689fddd7f544d5027a7c7a6869ba inherit pub_methods_classrespeaker_1_1BaseNode"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classrespeaker_1_1BaseNode.html#a72e3689fddd7f544d5027a7c7a6869ba">BindToCore</a> (int core_index)</td></tr>
<tr class="separator:a72e3689fddd7f544d5027a7c7a6869ba inherit pub_methods_classrespeaker_1_1BaseNode"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9a1f5f6f0655912b8eca7f2d285a3dcd inherit pub_methods_classrespeaker_1_1BaseNode"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classrespeaker_1_1BaseNode.html#a9a1f5f6f0655912b8eca7f2d285a3dcd">SetThreadPriority</a> (int priority)</td></tr>
<tr class="separator:a9a1f5f6f0655912b8eca7f2d285a3dcd inherit pub_methods_classrespeaker_1_1BaseNode"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a11e7aa6cac55a3c3e335e7250804f240"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classrespeaker_1_1FileCollectorNode.html">FileCollectorNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classrespeaker_1_1FileCollectorNode.html#a11e7aa6cac55a3c3e335e7250804f240">Create</a> (std::string wav_file_path, bool output_interleaved=false)</td></tr>
<tr class="separator:a11e7aa6cac55a3c3e335e7250804f240"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6faaeb214fb96aaca69bf06cc4c0b1d9"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classrespeaker_1_1FileCollectorNode.html">FileCollectorNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classrespeaker_1_1FileCollectorNode.html#a6faaeb214fb96aaca69bf06cc4c0b1d9">Create</a> (std::string pcm_device_name, int block_len_ms, bool output_interleaved=false)</td></tr>
<tr class="separator:a6faaeb214fb96aaca69bf06cc4c0b1d9"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_methods_classrespeaker_1_1BaseNode"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classrespeaker_1_1BaseNode')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="classrespeaker_1_1BaseNode.html">respeaker::BaseNode</a></td></tr>
<tr class="memitem:acde77c116f88c3643bc64964b5bf8c9c inherit pro_methods_classrespeaker_1_1BaseNode"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classrespeaker_1_1BaseNode.html#acde77c116f88c3643bc64964b5bf8c9c">EnableQueueFlush</a> (bool enable)</td></tr>
<tr class="separator:acde77c116f88c3643bc64964b5bf8c9c inherit pro_methods_classrespeaker_1_1BaseNode"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af19fcacd824cf2549e8770ab15a72805 inherit pro_methods_classrespeaker_1_1BaseNode"><td class="memItemLeft" align="right" valign="top"><a id="af19fcacd824cf2549e8770ab15a72805"></a>
void </td><td class="memItemRight" valign="bottom"><b>_Interleave</b> (const int16_t *const *deinterleaved, size_t num_frames, size_t num_channels, int16_t *interleaved)</td></tr>
<tr class="separator:af19fcacd824cf2549e8770ab15a72805 inherit pro_methods_classrespeaker_1_1BaseNode"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abb276fd97a41540d79bbe7fe5af2eccb inherit pro_methods_classrespeaker_1_1BaseNode"><td class="memItemLeft" align="right" valign="top"><a id="abb276fd97a41540d79bbe7fe5af2eccb"></a>
void </td><td class="memItemRight" valign="bottom"><b>_Deinterleave</b> (const int16_t *interleaved, size_t num_frames, size_t num_channels, int16_t *const *deinterleaved)</td></tr>
<tr class="separator:abb276fd97a41540d79bbe7fe5af2eccb inherit pro_methods_classrespeaker_1_1BaseNode"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a868a8ce8342fd762d6f9bd2d66d8039b inherit pro_methods_classrespeaker_1_1BaseNode"><td class="memItemLeft" align="right" valign="top"><a id="a868a8ce8342fd762d6f9bd2d66d8039b"></a>
void </td><td class="memItemRight" valign="bottom"><b>_Deinterleave</b> (const float *interleaved, size_t num_frames, size_t num_channels, float *const *deinterleaved)</td></tr>
<tr class="separator:a868a8ce8342fd762d6f9bd2d66d8039b inherit pro_methods_classrespeaker_1_1BaseNode"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pro_attribs_classrespeaker_1_1BaseNode"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classrespeaker_1_1BaseNode')"><img src="closed.png" alt="-"/> Protected Attributes inherited from <a class="el" href="classrespeaker_1_1BaseNode.html">respeaker::BaseNode</a></td></tr>
<tr class="memitem:acbc797af16d1d2b2ee3a4677cbdbfd52 inherit pro_attribs_classrespeaker_1_1BaseNode"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classrespeaker_1_1BaseNode.html">BaseNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classrespeaker_1_1BaseNode.html#acbc797af16d1d2b2ee3a4677cbdbfd52">_uplink_node</a> = nullptr</td></tr>
<tr class="separator:acbc797af16d1d2b2ee3a4677cbdbfd52 inherit pro_attribs_classrespeaker_1_1BaseNode"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ada26f5cc0c9a649f3d98c7b829426c4b inherit pro_attribs_classrespeaker_1_1BaseNode"><td class="memItemLeft" align="right" valign="top">std::list< <a class="el" href="classrespeaker_1_1BaseNode.html">BaseNode</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classrespeaker_1_1BaseNode.html#ada26f5cc0c9a649f3d98c7b829426c4b">_list_downlink_nodes</a></td></tr>
<tr class="separator:ada26f5cc0c9a649f3d98c7b829426c4b inherit pro_attribs_classrespeaker_1_1BaseNode"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8ffc3f266b114e71180c1302ebfcf93e inherit pro_attribs_classrespeaker_1_1BaseNode"><td class="memItemLeft" align="right" valign="top"><a id="a8ffc3f266b114e71180c1302ebfcf93e"></a>
<a class="el" href="structrespeaker_1_1NodeParameter.html">NodeParameter</a> </td><td class="memItemRight" valign="bottom"><b>_input_parameter</b></td></tr>
<tr class="separator:a8ffc3f266b114e71180c1302ebfcf93e inherit pro_attribs_classrespeaker_1_1BaseNode"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af77eba5ccadaf5700e37d0615160659f inherit pro_attribs_classrespeaker_1_1BaseNode"><td class="memItemLeft" align="right" valign="top"><a id="af77eba5ccadaf5700e37d0615160659f"></a>
<a class="el" href="structrespeaker_1_1NodeParameter.html">NodeParameter</a> </td><td class="memItemRight" valign="bottom"><b>_output_parameter</b></td></tr>
<tr class="separator:af77eba5ccadaf5700e37d0615160659f inherit pro_attribs_classrespeaker_1_1BaseNode"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aabaadd03e527db413e5c08bff855fb21 inherit pro_attribs_classrespeaker_1_1BaseNode"><td class="memItemLeft" align="right" valign="top"><a id="aabaadd03e527db413e5c08bff855fb21"></a>
int </td><td class="memItemRight" valign="bottom"><b>_system_check</b> = 0</td></tr>
<tr class="separator:aabaadd03e527db413e5c08bff855fb21 inherit pro_attribs_classrespeaker_1_1BaseNode"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abfe38c4ea84934d8cdc6b630b0efce70 inherit pro_attribs_classrespeaker_1_1BaseNode"><td class="memItemLeft" align="right" valign="top"><a id="abfe38c4ea84934d8cdc6b630b0efce70"></a>
<a class="el" href="structrespeaker_1_1ChainSharedData.html">ChainSharedData</a> * </td><td class="memItemRight" valign="bottom"><b>_chain_shared_data</b> = nullptr</td></tr>
<tr class="separator:abfe38c4ea84934d8cdc6b630b0efce70 inherit pro_attribs_classrespeaker_1_1BaseNode"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a873435ae89cd2b1103644bbd6ca949c3 inherit pro_attribs_classrespeaker_1_1BaseNode"><td class="memItemLeft" align="right" valign="top"><a id="a873435ae89cd2b1103644bbd6ca949c3"></a>
bool </td><td class="memItemRight" valign="bottom"><b>_is_head</b> = false</td></tr>
<tr class="separator:a873435ae89cd2b1103644bbd6ca949c3 inherit pro_attribs_classrespeaker_1_1BaseNode"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a610aa4f77aae2dbe3170dadd9088045a inherit pro_attribs_classrespeaker_1_1BaseNode"><td class="memItemLeft" align="right" valign="top"><a id="a610aa4f77aae2dbe3170dadd9088045a"></a>
bool </td><td class="memItemRight" valign="bottom"><b>_is_tail</b> = false</td></tr>
<tr class="separator:a610aa4f77aae2dbe3170dadd9088045a inherit pro_attribs_classrespeaker_1_1BaseNode"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab9b09f9e45f6f448ecf7ee3f2fafde4d inherit pro_attribs_classrespeaker_1_1BaseNode"><td class="memItemLeft" align="right" valign="top"><a id="ab9b09f9e45f6f448ecf7ee3f2fafde4d"></a>
bool </td><td class="memItemRight" valign="bottom"><b>_is_interleaved_after_process</b> = false</td></tr>
<tr class="separator:ab9b09f9e45f6f448ecf7ee3f2fafde4d inherit pro_attribs_classrespeaker_1_1BaseNode"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab1b4451bc2ff6667b489cc9804663719 inherit pro_attribs_classrespeaker_1_1BaseNode"><td class="memItemLeft" align="right" valign="top"><a id="ab1b4451bc2ff6667b489cc9804663719"></a>
int </td><td class="memItemRight" valign="bottom"><b>_num_frames_for_store_block</b></td></tr>
<tr class="separator:ab1b4451bc2ff6667b489cc9804663719 inherit pro_attribs_classrespeaker_1_1BaseNode"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7d61c0cf63208a6a88ae529486cf7b0a inherit pro_attribs_classrespeaker_1_1BaseNode"><td class="memItemLeft" align="right" valign="top"><a id="a7d61c0cf63208a6a88ae529486cf7b0a"></a>
int </td><td class="memItemRight" valign="bottom"><b>_channels_for_store_block</b></td></tr>
<tr class="separator:a7d61c0cf63208a6a88ae529486cf7b0a inherit pro_attribs_classrespeaker_1_1BaseNode"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad78650c657fd198def176d39286d57aa inherit pro_attribs_classrespeaker_1_1BaseNode"><td class="memItemLeft" align="right" valign="top"><a id="ad78650c657fd198def176d39286d57aa"></a>
int16_t * </td><td class="memItemRight" valign="bottom"><b>_buffer_for_store_block</b></td></tr>
<tr class="separator:ad78650c657fd198def176d39286d57aa inherit pro_attribs_classrespeaker_1_1BaseNode"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5e50f8282e18033cc7f14a529be1b073 inherit pro_attribs_classrespeaker_1_1BaseNode"><td class="memItemLeft" align="right" valign="top"><a id="a5e50f8282e18033cc7f14a529be1b073"></a>
std::unique_ptr< int16_t *[]> </td><td class="memItemRight" valign="bottom"><b>_channels_ptr</b></td></tr>
<tr class="separator:a5e50f8282e18033cc7f14a529be1b073 inherit pro_attribs_classrespeaker_1_1BaseNode"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a11e7aa6cac55a3c3e335e7250804f240"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a11e7aa6cac55a3c3e335e7250804f240">◆ </a></span>Create() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classrespeaker_1_1FileCollectorNode.html">FileCollectorNode</a>* respeaker::FileCollectorNode::Create </td>
<td>(</td>
<td class="paramtype">std::string </td>
<td class="paramname"><em>wav_file_path</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>output_interleaved</em> = <code>false</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a <a class="el" href="classrespeaker_1_1FileCollectorNode.html">FileCollectorNode</a> instance. Collect the audio data from a given 8 channels *.wav file.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">wav_file_path</td><td>- The path of the 8 channels *.wav file. </td></tr>
<tr><td class="paramname">output_interleaved</td><td>- Set it true to output interleaved data, false to output deinterleaved data.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>FileCollectorNode* </dd></dl>
</div>
</div>
<a id="a6faaeb214fb96aaca69bf06cc4c0b1d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6faaeb214fb96aaca69bf06cc4c0b1d9">◆ </a></span>Create() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classrespeaker_1_1FileCollectorNode.html">FileCollectorNode</a>* respeaker::FileCollectorNode::Create </td>
<td>(</td>
<td class="paramtype">std::string </td>
<td class="paramname"><em>pcm_device_name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>block_len_ms</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>output_interleaved</em> = <code>false</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">wav_file_path</td><td>- The path of the 8 channels *.wav file. </td></tr>
<tr><td class="paramname">block_len_ms</td><td>- The output block time length, in milliseconds. Default to 8(ms). </td></tr>
<tr><td class="paramname">output_interleaved</td><td>- Set it true to output interleaved data, false to output deinterleaved data.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>PulseCollectorNode* </dd></dl>
</div>
</div>
<a id="a3cfd8d18a6da06cd258c176bc27350af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3cfd8d18a6da06cd258c176bc27350af">◆ </a></span>FetchBlock()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual std::string respeaker::FileCollectorNode::FetchBlock </td>
<td>(</td>
<td class="paramtype">bool & </td>
<td class="paramname"><em>exit</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>The head node must override this method, to do real audio data fetching</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">exit</td><td>[out] - The exit flag of the <a class="el" href="structrespeaker_1_1ChainSharedData.html">ChainSharedData</a> is set, the thread should join now.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>std::string </dd></dl>
<p>Reimplemented from <a class="el" href="classrespeaker_1_1BaseNode.html#a82f301a825f6245864e5df280ffd2e80">respeaker::BaseNode</a>.</p>
</div>
</div>
<a id="a66c1608adeed13ce599293e9aa8d2e75"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a66c1608adeed13ce599293e9aa8d2e75">◆ </a></span>OnJoinThread()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual bool respeaker::FileCollectorNode::OnJoinThread </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Do per node cleanup in this method. </p>
<p>Implements <a class="el" href="classrespeaker_1_1BaseNode.html#aed14c54e8a1bca55a384c23d13594613">respeaker::BaseNode</a>.</p>
</div>
</div>
<a id="ab48f5942f1b7154654d65844e600dd26"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab48f5942f1b7154654d65844e600dd26">◆ </a></span>OnStartThread()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual bool respeaker::FileCollectorNode::OnStartThread </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>The derived node must configure the output parameter in this method </p>
<p>Implements <a class="el" href="classrespeaker_1_1BaseNode.html#a54a8341faa495ff1f5d0b3cf93ba34e7">respeaker::BaseNode</a>.</p>
</div>
</div>
<a id="ac5dfb2c9cba997149cf5dcbe4a1f5726"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac5dfb2c9cba997149cf5dcbe4a1f5726">◆ </a></span>ProcessBlock()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual std::string respeaker::FileCollectorNode::ProcessBlock </td>
<td>(</td>
<td class="paramtype">std::string </td>
<td class="paramname"><em>block</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool & </td>
<td class="paramname"><em>exit</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Every node must implement this method.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">block</td><td>[in] </td></tr>
<tr><td class="paramname">exit</td><td>[out] - The exit flag of the <a class="el" href="structrespeaker_1_1ChainSharedData.html">ChainSharedData</a> is set, the thread should join now.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>std::string </dd></dl>
<p>Implements <a class="el" href="classrespeaker_1_1BaseNode.html#a58efcb38cbd0dc75a97060afb911e910">respeaker::BaseNode</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/home/gitlab-runner/builds/dc7d1974/0/seeedstudio/librespeaker/include/chain_nodes/<a class="el" href="file__collector__node_8h_source.html">file_collector_node.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>