-
Notifications
You must be signed in to change notification settings - Fork 1
/
aloop__output__node_8h_source.html
89 lines (87 loc) · 11.8 KB
/
aloop__output__node_8h_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
<!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: /home/gitlab-runner/builds/dc7d1974/0/seeedstudio/librespeaker/include/chain_nodes/aloop_output_node.h 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="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="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_fef0bd79b8e46d4cecee255b221b8de5.html">chain_nodes</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">aloop_output_node.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (c) 2018 Seeed Technology Co., Ltd.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * @author JerryYip <[email protected]></span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> *</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> </div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> </div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#ifndef __ALOOP_OUTPUT_NODE_H__</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#define __ALOOP_OUTPUT_NODE_H__</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> </div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include "chain_nodes/base_node.h"</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> </div><div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="namespacerespeaker.html"> 14</a></span> <span class="keyword">namespace </span><a class="code" href="namespacerespeaker.html">respeaker</a></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> {</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div><div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="classrespeaker_1_1AloopOutputNode.html"> 17</a></span> <span class="keyword">class </span><a class="code" href="classrespeaker_1_1AloopOutputNode.html">AloopOutputNode</a> : <span class="keyword">public</span> <a class="code" href="classrespeaker_1_1BaseNode.html">BaseNode</a></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> {</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keyword">static</span> <a class="code" href="classrespeaker_1_1AloopOutputNode.html">AloopOutputNode</a>* <a class="code" href="classrespeaker_1_1AloopOutputNode.html#af3cdc642512b41ef69fa99440b7110e0">Create</a>(std::string output_device_name, <span class="keywordtype">bool</span> output_interleaved=<span class="keyword">false</span>);</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keyword">static</span> <a class="code" href="classrespeaker_1_1AloopOutputNode.html">AloopOutputNode</a>* <a class="code" href="classrespeaker_1_1AloopOutputNode.html#af3cdc642512b41ef69fa99440b7110e0">Create</a>(std::string output_device_name, <span class="keywordtype">int</span> period_time_ms, <span class="keywordtype">int</span> buffer_time_ms, <span class="keywordtype">bool</span> output_interleaved=<span class="keyword">false</span>);</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keyword">virtual</span> ~<a class="code" href="classrespeaker_1_1AloopOutputNode.html">AloopOutputNode</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classrespeaker_1_1AloopOutputNode.html#a446697a4395649770d49bcd435f665b3">OnStartThread</a>() = 0;</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keyword">virtual</span> std::string <a class="code" href="classrespeaker_1_1AloopOutputNode.html#a8282242145ee5dfb676f6e5ce8de73de">FetchBlock</a>(<span class="keywordtype">bool</span>& exit) = 0;</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keyword">virtual</span> std::string <a class="code" href="classrespeaker_1_1AloopOutputNode.html#ac8a0c9dfdc59705065ec8a53867bf777">ProcessBlock</a>(std::string block, <span class="keywordtype">bool</span>& exit) = 0;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classrespeaker_1_1AloopOutputNode.html#a5346cd29cb641f74b6e9a38d723e77fc">OnJoinThread</a>() = 0;</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classrespeaker_1_1AloopOutputNode.html#a18fb800e03c962660b43761be038af0a">SetMaxBlockDelayTime</a>(<span class="keywordtype">int</span> ms) = 0;</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> };</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> </div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> } <span class="comment">//namespace</span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> </div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="preprocessor">#endif // !__ALOOP_OUTPUT_NODE_H__</span></div><div class="ttc" id="classrespeaker_1_1AloopOutputNode_html_a8282242145ee5dfb676f6e5ce8de73de"><div class="ttname"><a href="classrespeaker_1_1AloopOutputNode.html#a8282242145ee5dfb676f6e5ce8de73de">respeaker::AloopOutputNode::FetchBlock</a></div><div class="ttdeci">virtual std::string FetchBlock(bool &exit)=0</div></div>
<div class="ttc" id="classrespeaker_1_1AloopOutputNode_html_ac8a0c9dfdc59705065ec8a53867bf777"><div class="ttname"><a href="classrespeaker_1_1AloopOutputNode.html#ac8a0c9dfdc59705065ec8a53867bf777">respeaker::AloopOutputNode::ProcessBlock</a></div><div class="ttdeci">virtual std::string ProcessBlock(std::string block, bool &exit)=0</div></div>
<div class="ttc" id="classrespeaker_1_1AloopOutputNode_html_a5346cd29cb641f74b6e9a38d723e77fc"><div class="ttname"><a href="classrespeaker_1_1AloopOutputNode.html#a5346cd29cb641f74b6e9a38d723e77fc">respeaker::AloopOutputNode::OnJoinThread</a></div><div class="ttdeci">virtual bool OnJoinThread()=0</div></div>
<div class="ttc" id="classrespeaker_1_1AloopOutputNode_html_af3cdc642512b41ef69fa99440b7110e0"><div class="ttname"><a href="classrespeaker_1_1AloopOutputNode.html#af3cdc642512b41ef69fa99440b7110e0">respeaker::AloopOutputNode::Create</a></div><div class="ttdeci">static AloopOutputNode * Create(std::string output_device_name, bool output_interleaved=false)</div></div>
<div class="ttc" id="classrespeaker_1_1AloopOutputNode_html_a18fb800e03c962660b43761be038af0a"><div class="ttname"><a href="classrespeaker_1_1AloopOutputNode.html#a18fb800e03c962660b43761be038af0a">respeaker::AloopOutputNode::SetMaxBlockDelayTime</a></div><div class="ttdeci">virtual int SetMaxBlockDelayTime(int ms)=0</div></div>
<div class="ttc" id="classrespeaker_1_1AloopOutputNode_html"><div class="ttname"><a href="classrespeaker_1_1AloopOutputNode.html">respeaker::AloopOutputNode</a></div><div class="ttdef"><b>Definition:</b> aloop_output_node.h:17</div></div>
<div class="ttc" id="classrespeaker_1_1BaseNode_html"><div class="ttname"><a href="classrespeaker_1_1BaseNode.html">respeaker::BaseNode</a></div><div class="ttdef"><b>Definition:</b> base_node.h:65</div></div>
<div class="ttc" id="classrespeaker_1_1AloopOutputNode_html_a446697a4395649770d49bcd435f665b3"><div class="ttname"><a href="classrespeaker_1_1AloopOutputNode.html#a446697a4395649770d49bcd435f665b3">respeaker::AloopOutputNode::OnStartThread</a></div><div class="ttdeci">virtual bool OnStartThread()=0</div></div>
<div class="ttc" id="namespacerespeaker_html"><div class="ttname"><a href="namespacerespeaker.html">respeaker</a></div><div class="ttdef"><b>Definition:</b> aloop_output_node.h:14</div></div>
</div><!-- fragment --></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>