Skip to content

Commit

Permalink
Deploying to doxygen from @ 7aac18f 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Dec 7, 2024
1 parent a3578c4 commit b727343
Show file tree
Hide file tree
Showing 17 changed files with 159 additions and 158 deletions.
22 changes: 11 additions & 11 deletions _audio_effect_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -287,20 +287,20 @@
<div class="line"><a name="l00273"></a><span class="lineno"> 273</span>&#160; </div>
<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>&#160; <span class="keywordtype">void</span> setDepth(<span class="keywordtype">float</span> value) {</div>
<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>&#160; depth = value;</div>
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>&#160; <span class="keywordflow">if</span> (depth &gt; 1.0)</div>
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>&#160; depth = 1.0;</div>
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>&#160; <span class="keywordflow">if</span> (depth &lt; 0)</div>
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>&#160; depth = 0.0;</div>
<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>&#160; <span class="keywordflow">if</span> (depth &gt; 1.0f)</div>
<div class="line"><a name="l00277"></a><span class="lineno"> 277</span>&#160; depth = 1.0f;</div>
<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>&#160; <span class="keywordflow">if</span> (depth &lt; 0.0f)</div>
<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>&#160; depth = 0.0f;</div>
<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>&#160; }</div>
<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>&#160; </div>
<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>&#160; <span class="keywordtype">float</span> getDepth() { <span class="keywordflow">return</span> depth; }</div>
<div class="line"><a name="l00283"></a><span class="lineno"> 283</span>&#160; </div>
<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>&#160; <span class="keywordtype">void</span> setFeedback(<span class="keywordtype">float</span> feed) {</div>
<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>&#160; feedback = feed;</div>
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>&#160; <span class="keywordflow">if</span> (feedback &gt; 1.0)</div>
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>&#160; feedback = 1.0;</div>
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>&#160; <span class="keywordflow">if</span> (feedback &lt; 0)</div>
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>&#160; feedback = 0.0;</div>
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>&#160; <span class="keywordflow">if</span> (feedback &gt; 1.0f)</div>
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>&#160; feedback = 1.0f;</div>
<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>&#160; <span class="keywordflow">if</span> (feedback &lt; 0.0f)</div>
<div class="line"><a name="l00289"></a><span class="lineno"> 289</span>&#160; feedback = 0.0f;</div>
<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>&#160; }</div>
<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>&#160; </div>
<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>&#160; <span class="keywordtype">float</span> getFeedback() { <span class="keywordflow">return</span> feedback; }</div>
Expand All @@ -320,7 +320,7 @@
<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>&#160; int32_t delayed_value = buffer[delay_line_index];</div>
<div class="line"><a name="l00307"></a><span class="lineno"> 307</span>&#160; </div>
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span>&#160; <span class="comment">// Mix the above with current audio and write the results back to output</span></div>
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span>&#160; int32_t out = ((1.0 - depth) * input) + (depth * delayed_value);</div>
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span>&#160; int32_t out = ((1.0f - depth) * input) + (depth * delayed_value);</div>
<div class="line"><a name="l00310"></a><span class="lineno"> 310</span>&#160; </div>
<div class="line"><a name="l00311"></a><span class="lineno"> 311</span>&#160; <span class="comment">// Update each delay line</span></div>
<div class="line"><a name="l00312"></a><span class="lineno"> 312</span>&#160; buffer[delay_line_index] = <a class="code" href="classaudio__tools_1_1_audio_effect.html#af52bdd0b692ecf558d8bd97fac35bf6b">clip</a>(feedback * (delayed_value + input));</div>
Expand All @@ -336,7 +336,7 @@
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span>&#160; </div>
<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00324"></a><span class="lineno"> 324</span>&#160; Vector&lt;effect_t&gt; buffer{0};</div>
<div class="line"><a name="l00325"></a><span class="lineno"> 325</span>&#160; <span class="keywordtype">float</span> feedback = 0.0, duration = 0.0, sampleRate = 0.0, depth = 0.0;</div>
<div class="line"><a name="l00325"></a><span class="lineno"> 325</span>&#160; <span class="keywordtype">float</span> feedback = 0.0f, duration = 0.0f, sampleRate = 0.0f, depth = 0.0f;</div>
<div class="line"><a name="l00326"></a><span class="lineno"> 326</span>&#160; <span class="keywordtype">size_t</span> delay_len_samples = 0;</div>
<div class="line"><a name="l00327"></a><span class="lineno"> 327</span>&#160; <span class="keywordtype">size_t</span> delay_line_index = 0;</div>
<div class="line"><a name="l00328"></a><span class="lineno"> 328</span>&#160; </div>
Expand Down Expand Up @@ -487,7 +487,7 @@
<div class="line"><a name="l00509"></a><span class="lineno"> 509</span>&#160; }</div>
<div class="line"><a name="l00510"></a><span class="lineno"> 510</span>&#160; </div>
<div class="line"><a name="l00512"></a><span class="lineno"><a class="line" href="classaudio__tools_1_1_compressor.html#ab1f6194d1a670310cb303458c44eedf0"> 512</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classaudio__tools_1_1_compressor.html#ab1f6194d1a670310cb303458c44eedf0">setCompressionRatio</a>(<span class="keywordtype">float</span> compressionRatio){</div>
<div class="line"><a name="l00513"></a><span class="lineno"> 513</span>&#160; <span class="keywordflow">if</span> (compressionRatio&lt;1.0){</div>
<div class="line"><a name="l00513"></a><span class="lineno"> 513</span>&#160; <span class="keywordflow">if</span> (compressionRatio &lt; 1.0f){</div>
<div class="line"><a name="l00514"></a><span class="lineno"> 514</span>&#160; gainreduce = compressionRatio;</div>
<div class="line"><a name="l00515"></a><span class="lineno"> 515</span>&#160; }</div>
<div class="line"><a name="l00516"></a><span class="lineno"> 516</span>&#160; recalculate();</div>
Expand Down
2 changes: 1 addition & 1 deletion _audio_i_o_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; </div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <span class="comment">// we read half the necessary bytes</span></div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="keywordflow">if</span> (buffer.size() == 0) {</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="keywordtype">int</span> size = (0.5 / p_transform-&gt;getByteFactor() * len);</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="keywordtype">int</span> size = (0.5f / p_transform-&gt;getByteFactor() * len);</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="comment">// process full samples/frames</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; size = size / 4 * 4;</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; LOGI(<span class="stringliteral">&quot;read size: %d&quot;</span>, size);</div>
Expand Down
4 changes: 2 additions & 2 deletions _buffers_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; </div>
<div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="classaudio__tools_1_1_base_buffer.html#abcd92c9b245692b77908d66e3cbc7bc5"> 148</a></span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">float</span> <a class="code" href="classaudio__tools_1_1_base_buffer.html#abcd92c9b245692b77908d66e3cbc7bc5">levelPercent</a>() {</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; <span class="comment">// prevent div by 0.</span></div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; <span class="keywordflow">if</span> (size()==0) <span class="keywordflow">return</span> 0.0;</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; <span class="keywordflow">return</span> 100.0 * <span class="keyword">static_cast&lt;</span><span class="keywordtype">float</span><span class="keyword">&gt;</span>(<a class="code" href="classaudio__tools_1_1_base_buffer.html#aebd60457902debb30b07971a16f24ebd">available</a>()) / <span class="keyword">static_cast&lt;</span><span class="keywordtype">float</span><span class="keyword">&gt;</span>(size());</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; <span class="keywordflow">if</span> (size()==0) <span class="keywordflow">return</span> 0.0f;</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; <span class="keywordflow">return</span> 100.0f * <span class="keyword">static_cast&lt;</span><span class="keywordtype">float</span><span class="keyword">&gt;</span>(<a class="code" href="classaudio__tools_1_1_base_buffer.html#aebd60457902debb30b07971a16f24ebd">available</a>()) / <span class="keyword">static_cast&lt;</span><span class="keywordtype">float</span><span class="keyword">&gt;</span>(size());</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; }</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; </div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; <span class="keyword">protected</span>:</div>
Expand Down
23 changes: 12 additions & 11 deletions _int24__3bytes__t_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -190,17 +190,18 @@
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160;} <span class="comment">// namespace audio_tools</span></div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; </div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;<span class="preprocessor">#ifdef USE_TYPETRAITS</span></div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; </div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160;<span class="keyword">namespace </span>std {</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; <span class="keyword">template</span>&lt;&gt; <span class="keyword">class </span>numeric_limits&lt;<a class="code" href="namespaceaudio__tools.html">audio_tools</a>::int24_3bytes_t&gt; {</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; <span class="keyword">static</span> <a class="code" href="classaudio__tools_1_1int24__3bytes__t.html">audio_tools::int24_3bytes_t</a> lowest() {<span class="keywordflow">return</span> <a class="code" href="classaudio__tools_1_1int24__3bytes__t.html">audio_tools::int24_3bytes_t</a>(-0x7FFFFF);};</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; <span class="keyword">static</span> <a class="code" href="classaudio__tools_1_1int24__3bytes__t.html">audio_tools::int24_3bytes_t</a> min() {<span class="keywordflow">return</span> <a class="code" href="classaudio__tools_1_1int24__3bytes__t.html">audio_tools::int24_3bytes_t</a>(-0x7FFFFF);};</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; <span class="keyword">static</span> <a class="code" href="classaudio__tools_1_1int24__3bytes__t.html">audio_tools::int24_3bytes_t</a> max() {<span class="keywordflow">return</span> <a class="code" href="classaudio__tools_1_1int24__3bytes__t.html">audio_tools::int24_3bytes_t</a>(0x7FFFFF);};</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; };</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160;}</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; </div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160;<span class="preprocessor">#include &lt;limits&gt;</span></div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; </div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160;<span class="keyword">namespace </span>std {</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <span class="keyword">template</span>&lt;&gt; <span class="keyword">class </span>numeric_limits&lt;<a class="code" href="namespaceaudio__tools.html">audio_tools</a>::int24_3bytes_t&gt; {</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; <span class="keyword">public</span>:</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; <span class="keyword">static</span> <a class="code" href="classaudio__tools_1_1int24__3bytes__t.html">audio_tools::int24_3bytes_t</a> lowest() {<span class="keywordflow">return</span> <a class="code" href="classaudio__tools_1_1int24__3bytes__t.html">audio_tools::int24_3bytes_t</a>(-0x7FFFFF);};</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; <span class="keyword">static</span> <a class="code" href="classaudio__tools_1_1int24__3bytes__t.html">audio_tools::int24_3bytes_t</a> min() {<span class="keywordflow">return</span> <a class="code" href="classaudio__tools_1_1int24__3bytes__t.html">audio_tools::int24_3bytes_t</a>(-0x7FFFFF);};</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; <span class="keyword">static</span> <a class="code" href="classaudio__tools_1_1int24__3bytes__t.html">audio_tools::int24_3bytes_t</a> max() {<span class="keywordflow">return</span> <a class="code" href="classaudio__tools_1_1int24__3bytes__t.html">audio_tools::int24_3bytes_t</a>(0x7FFFFF);};</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; };</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160;}</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; </div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="aclassaudio__tools_1_1int24__3bytes__t_html"><div class="ttname"><a href="classaudio__tools_1_1int24__3bytes__t.html">audio_tools::int24_3bytes_t</a></div><div class="ttdoc">24bit integer which is used for I2S sound processing. The values are really using 3 bytes....</div><div class="ttdef"><b>Definition:</b> Int24_3bytes_t.h:16</div></div>
<div class="ttc" id="aclassaudio__tools_1_1int24__3bytes__t_html_a7f0c0806ea9d9ccd6fff33eb2af10768"><div class="ttname"><a href="classaudio__tools_1_1int24__3bytes__t.html#a7f0c0806ea9d9ccd6fff33eb2af10768">audio_tools::int24_3bytes_t::scale32</a></div><div class="ttdeci">int32_t scale32() const</div><div class="ttdoc">provides value between -2,147,483,647 and 2,147,483,647</div><div class="ttdef"><b>Definition:</b> Int24_3bytes_t.h:108</div></div>
<div class="ttc" id="aclassaudio__tools_1_1int24__3bytes__t_html_a8cc7782de081ce702a9be163b4cb8f84"><div class="ttname"><a href="classaudio__tools_1_1int24__3bytes__t.html#a8cc7782de081ce702a9be163b4cb8f84">audio_tools::int24_3bytes_t::toInt</a></div><div class="ttdeci">int toInt() const</div><div class="ttdoc">Standard Conversion to Int.</div><div class="ttdef"><b>Definition:</b> Int24_3bytes_t.h:89</div></div>
Expand Down
Loading

0 comments on commit b727343

Please sign in to comment.