415 lines
75 KiB
HTML
415 lines
75 KiB
HTML
<!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>libctru: include/3ds/ndsp/ndsp.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">libctru
|
|
 <span id="projectnumber">v2.4.1</span>
|
|
</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>
|
|
<!-- 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_d475325f6a9fe3bfc3a495c72a9e475e.html">3ds</a></li><li class="navelem"><a class="el" href="dir_953d82d0b36b92ff36f0c21b90fa146f.html">ndsp</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">ndsp.h</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="ndsp_8h.html">Go to the documentation of this file.</a><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"> * @file ndsp.h</span></div>
|
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * @brief Interface for Nintendo's default DSP component.</span></div>
|
|
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#pragma once</span></div>
|
|
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>  </div>
|
|
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include <<a class="code" href="os_8h.html">3ds/os.h</a>></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">#define NDSP_SAMPLE_RATE (SYSCLOCK_SOC / 512.0)</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">///@name Data types</span></div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">///@{</span></div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">/// Sound output modes.</span></div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="ndsp_8h.html#aa9cfcfee3c85f67dadf1091b9b8bdcfd"> 14</a></span> <span class="comment"></span><span class="keyword">typedef</span> <span class="keyword">enum</span></div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> {</div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="ndsp_8h.html#aa9cfcfee3c85f67dadf1091b9b8bdcfda901dbb3dd6f7588228ca0052b3b5ca55"> 16</a></span>  <a class="code" href="ndsp_8h.html#aa9cfcfee3c85f67dadf1091b9b8bdcfda901dbb3dd6f7588228ca0052b3b5ca55">NDSP_OUTPUT_MONO</a> = 0, <span class="comment">///< Mono sound</span></div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="ndsp_8h.html#aa9cfcfee3c85f67dadf1091b9b8bdcfdad0643ea33ee4590c7239f1eec1fe9fd1"> 17</a></span>  <a class="code" href="ndsp_8h.html#aa9cfcfee3c85f67dadf1091b9b8bdcfdad0643ea33ee4590c7239f1eec1fe9fd1">NDSP_OUTPUT_STEREO</a> = 1, <span class="comment">///< Stereo sound</span></div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="ndsp_8h.html#aa9cfcfee3c85f67dadf1091b9b8bdcfdae0c412a650b7b63783a8e0a3d84666e4"> 18</a></span>  <a class="code" href="ndsp_8h.html#aa9cfcfee3c85f67dadf1091b9b8bdcfdae0c412a650b7b63783a8e0a3d84666e4">NDSP_OUTPUT_SURROUND</a> = 2, <span class="comment">///< 3D Surround sound</span></div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> } <a class="code" href="ndsp_8h.html#aa9cfcfee3c85f67dadf1091b9b8bdcfd">ndspOutputMode</a>;</div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  </div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment">// Clipping modes.</span></div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="ndsp_8h.html#a256d7e48bf7174660fc538ac396b9b19"> 22</a></span> <span class="keyword">typedef</span> <span class="keyword">enum</span></div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> {</div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="ndsp_8h.html#a256d7e48bf7174660fc538ac396b9b19a188005687d5eb075cfcd78016371c893"> 24</a></span>  <a class="code" href="ndsp_8h.html#a256d7e48bf7174660fc538ac396b9b19a188005687d5eb075cfcd78016371c893">NDSP_CLIP_NORMAL</a> = 0, <span class="comment">///< "Normal" clipping mode (?)</span></div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="ndsp_8h.html#a256d7e48bf7174660fc538ac396b9b19abf0c921ecef3f50bb4b9efb8338aa94a"> 25</a></span>  <a class="code" href="ndsp_8h.html#a256d7e48bf7174660fc538ac396b9b19abf0c921ecef3f50bb4b9efb8338aa94a">NDSP_CLIP_SOFT</a> = 1, <span class="comment">///< "Soft" clipping mode (?)</span></div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> } <a class="code" href="ndsp_8h.html#a256d7e48bf7174660fc538ac396b9b19">ndspClippingMode</a>;</div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  </div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment">// Surround speaker positions.</span></div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="ndsp_8h.html#aaa155e6e3bd6e21c43a7bbf7466f26d4"> 29</a></span> <span class="keyword">typedef</span> <span class="keyword">enum</span></div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> {</div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="ndsp_8h.html#aaa155e6e3bd6e21c43a7bbf7466f26d4a6534cb3b5d41add240139d97c0d92cef"> 31</a></span>  <a class="code" href="ndsp_8h.html#aaa155e6e3bd6e21c43a7bbf7466f26d4a6534cb3b5d41add240139d97c0d92cef">NDSP_SPKPOS_SQUARE</a> = 0, <span class="comment">///<?</span></div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="ndsp_8h.html#aaa155e6e3bd6e21c43a7bbf7466f26d4a26bcddb04c06a3e782b84c43edd98d4c"> 32</a></span>  <a class="code" href="ndsp_8h.html#aaa155e6e3bd6e21c43a7bbf7466f26d4a26bcddb04c06a3e782b84c43edd98d4c">NDSP_SPKPOS_WIDE</a> = 1, <span class="comment">///<?</span></div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="ndsp_8h.html#aaa155e6e3bd6e21c43a7bbf7466f26d4a3be9513896beef2994022864ed335911"> 33</a></span>  <a class="code" href="ndsp_8h.html#aaa155e6e3bd6e21c43a7bbf7466f26d4a3be9513896beef2994022864ed335911">NDSP_SPKPOS_NUM</a> = 2, <span class="comment">///<?</span></div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> } <a class="code" href="ndsp_8h.html#aaa155e6e3bd6e21c43a7bbf7466f26d4">ndspSpeakerPos</a>;</div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="comment">/// ADPCM data.</span></div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="structndspAdpcmData.html"> 37</a></span> <span class="comment"></span><span class="keyword">typedef</span> <span class="keyword">struct</span></div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> {</div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="structndspAdpcmData.html#aec31f142f53dead462fe78e16b43c8da"> 39</a></span>  <a class="code" href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a> <a class="code" href="structndspAdpcmData.html#aec31f142f53dead462fe78e16b43c8da">index</a>; <span class="comment">///< Current predictor index</span></div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="structndspAdpcmData.html#a8cb7064cd24c0a9af97652d5d6886fa7"> 40</a></span>  <a class="code" href="types_8h.html#aa980e2c02ba2305e0f489d5650655425">s16</a> <a class="code" href="structndspAdpcmData.html#a8cb7064cd24c0a9af97652d5d6886fa7">history0</a>; <span class="comment">///< Last outputted PCM16 sample.</span></div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="structndspAdpcmData.html#aa1c3f2d84437b3c73114274d1e57a374"> 41</a></span>  <a class="code" href="types_8h.html#aa980e2c02ba2305e0f489d5650655425">s16</a> <a class="code" href="structndspAdpcmData.html#aa1c3f2d84437b3c73114274d1e57a374">history1</a>; <span class="comment">///< Second to last outputted PCM16 sample.</span></div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> } <a class="code" href="structndspAdpcmData.html">ndspAdpcmData</a>;</div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="comment">/// Wave buffer type.</span></div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="comment"></span><span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structtag__ndspWaveBuf.html">tag_ndspWaveBuf</a> ndspWaveBuf;</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> <span class="comment">/// Wave buffer status.</span></div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="comment"></span><span class="keyword">enum</span></div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> {</div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="ndsp_8h.html#a77867ab4129f63159b37bca3b652a798a723dbfb7dc9c50cb1ff5a3fda4f4dfe1"> 50</a></span>  <a class="code" href="ndsp_8h.html#a77867ab4129f63159b37bca3b652a798a723dbfb7dc9c50cb1ff5a3fda4f4dfe1">NDSP_WBUF_FREE</a> = 0, <span class="comment">///< The wave buffer is not queued.</span></div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="ndsp_8h.html#a77867ab4129f63159b37bca3b652a798a35e846d5d3a0c40a9009efe2096381c2"> 51</a></span>  <a class="code" href="ndsp_8h.html#a77867ab4129f63159b37bca3b652a798a35e846d5d3a0c40a9009efe2096381c2">NDSP_WBUF_QUEUED</a> = 1, <span class="comment">///< The wave buffer is queued and has not been played yet.</span></div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="ndsp_8h.html#a77867ab4129f63159b37bca3b652a798ab703579b9808d95a1c231452e70948a8"> 52</a></span>  <a class="code" href="ndsp_8h.html#a77867ab4129f63159b37bca3b652a798ab703579b9808d95a1c231452e70948a8">NDSP_WBUF_PLAYING</a> = 2, <span class="comment">///< The wave buffer is playing right now.</span></div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="ndsp_8h.html#a77867ab4129f63159b37bca3b652a798ad47b533bf89b23c67243aa19e889bd68"> 53</a></span>  <a class="code" href="ndsp_8h.html#a77867ab4129f63159b37bca3b652a798ad47b533bf89b23c67243aa19e889bd68">NDSP_WBUF_DONE</a> = 3, <span class="comment">///< The wave buffer has finished being played.</span></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="comment"></span> </div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> <span class="comment">/// Wave buffer struct.</span></div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="structtag__ndspWaveBuf.html"> 57</a></span> <span class="comment"></span><span class="keyword">struct </span><a class="code" href="structtag__ndspWaveBuf.html">tag_ndspWaveBuf</a></div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> {</div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keyword">union</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"><a class="line" href="structtag__ndspWaveBuf.html#a09159f3732f1e8dbee8590517efdb0f6"> 61</a></span>  <a class="code" href="types_8h.html#a9e382f207c65ca13ab4ae98363aeda80">s8</a>* <a class="code" href="structtag__ndspWaveBuf.html#a09159f3732f1e8dbee8590517efdb0f6">data_pcm8</a>; <span class="comment">///< Pointer to PCM8 sample data.</span></div>
|
|
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="structtag__ndspWaveBuf.html#ab6347cf7fc44b90999544a4b2ad69a72"> 62</a></span>  <a class="code" href="types_8h.html#aa980e2c02ba2305e0f489d5650655425">s16</a>* <a class="code" href="structtag__ndspWaveBuf.html#ab6347cf7fc44b90999544a4b2ad69a72">data_pcm16</a>; <span class="comment">///< Pointer to PCM16 sample data.</span></div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="structtag__ndspWaveBuf.html#a3f97b49b15a70f10152c14944a5c95ba"> 63</a></span>  <a class="code" href="types_8h.html#a92c50087ca0e64fa93fc59402c55f8ca">u8</a>* <a class="code" href="structtag__ndspWaveBuf.html#a3f97b49b15a70f10152c14944a5c95ba">data_adpcm</a>; <span class="comment">///< Pointer to DSPADPCM sample data.</span></div>
|
|
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="structtag__ndspWaveBuf.html#a022acadc9a54ab814274c83460f7394d"> 64</a></span>  <span class="keyword">const</span> <span class="keywordtype">void</span>* <a class="code" href="structtag__ndspWaveBuf.html#a022acadc9a54ab814274c83460f7394d">data_vaddr</a>; <span class="comment">///< Data virtual address.</span></div>
|
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  };</div>
|
|
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="structtag__ndspWaveBuf.html#a8be46881ae491c7e7df54e81289c7a96"> 66</a></span>  <a class="code" href="types_8h.html#afaa62991928fb9fb18ff0db62a040aba">u32</a> <a class="code" href="structtag__ndspWaveBuf.html#a8be46881ae491c7e7df54e81289c7a96">nsamples</a>; <span class="comment">///< Total number of samples (PCM8=bytes, PCM16=halfwords, DSPADPCM=nibbles without frame headers)</span></div>
|
|
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="structtag__ndspWaveBuf.html#a64256f46cb4f6122690f6c1e4b41f1c5"> 67</a></span>  <a class="code" href="structndspAdpcmData.html">ndspAdpcmData</a>* <a class="code" href="structtag__ndspWaveBuf.html#a64256f46cb4f6122690f6c1e4b41f1c5">adpcm_data</a>; <span class="comment">///< ADPCM data.</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"><a class="line" href="structtag__ndspWaveBuf.html#affba548676133ea6e94d6215c7bc3cb6"> 69</a></span>  <a class="code" href="types_8h.html#afaa62991928fb9fb18ff0db62a040aba">u32</a> <a class="code" href="structtag__ndspWaveBuf.html#affba548676133ea6e94d6215c7bc3cb6">offset</a>; <span class="comment">///< Buffer offset. Only used for capture.</span></div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="structtag__ndspWaveBuf.html#a3c7ea7f11f9e714c385befa490f5079b"> 70</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structtag__ndspWaveBuf.html#a3c7ea7f11f9e714c385befa490f5079b">looping</a>; <span class="comment">///< Whether to loop the buffer.</span></div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="structtag__ndspWaveBuf.html#a967b0ddea945fc5de1ce8334d2135358"> 71</a></span>  <a class="code" href="types_8h.html#a92c50087ca0e64fa93fc59402c55f8ca">u8</a> <a class="code" href="structtag__ndspWaveBuf.html#a967b0ddea945fc5de1ce8334d2135358">status</a>; <span class="comment">///< Queuing/playback status.</span></div>
|
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  </div>
|
|
<div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="structtag__ndspWaveBuf.html#a47f038d687b5dfa121c510146a35d5d5"> 73</a></span>  <a class="code" href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a> <a class="code" href="structtag__ndspWaveBuf.html#a47f038d687b5dfa121c510146a35d5d5">sequence_id</a>; <span class="comment">///< Sequence ID. Assigned automatically by ndspChnWaveBufAdd.</span></div>
|
|
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="structtag__ndspWaveBuf.html#a227ff854f75d71f04bbea7fc48b364f6"> 74</a></span>  ndspWaveBuf* <a class="code" href="structtag__ndspWaveBuf.html#a227ff854f75d71f04bbea7fc48b364f6">next</a>; <span class="comment">///< Next buffer to play. Used internally, do not modify.</span></div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> };</div>
|
|
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="comment">/// Sound frame callback function. (data = User provided data)</span></div>
|
|
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="ndsp_8h.html#a7b56d354bc3e6300c2463e54cdc5c29f"> 78</a></span> <span class="comment"></span><span class="keyword">typedef</span> void (*<a class="code" href="ndsp_8h.html#a7b56d354bc3e6300c2463e54cdc5c29f">ndspCallback</a>)(<span class="keywordtype">void</span>* data);<span class="comment"></span></div>
|
|
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="comment">/// Auxiliary output callback function. (data = User provided data, nsamples = Number of samples, samples = Sample data)</span></div>
|
|
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="ndsp_8h.html#ac7a08ac8efd0376efd6a6e1b1a064ca8"> 80</a></span> <span class="comment"></span><span class="keyword">typedef</span> void (*<a class="code" href="ndsp_8h.html#ac7a08ac8efd0376efd6a6e1b1a064ca8">ndspAuxCallback</a>)(<span class="keywordtype">void</span>* data, <span class="keywordtype">int</span> nsamples, <span class="keywordtype">void</span>* samples[4]);<span class="comment"></span></div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> <span class="comment">///@}</span></div>
|
|
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span> <span class="comment"></span><span class="comment"></span> </div>
|
|
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> <span class="comment">///@name Initialization and basic operations</span></div>
|
|
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="comment">///@{</span></div>
|
|
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="comment"></span><span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="comment"> * @brief Sets up the DSP component.</span></div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="comment"> * @param binary DSP binary to load.</span></div>
|
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="comment"> * @param size Size of the DSP binary.</span></div>
|
|
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> <span class="comment"> * @param progMask Program RAM block mask to load the binary to.</span></div>
|
|
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span> <span class="comment"> * @param dataMask Data RAM block mask to load the binary to.</span></div>
|
|
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="ndsp_8h.html#a50a0fa4fb97bbab2d0b862d0e1c2a341"> 92</a></span> <span class="keywordtype">void</span> <a class="code" href="ndsp_8h.html#a50a0fa4fb97bbab2d0b862d0e1c2a341">ndspUseComponent</a>(<span class="keyword">const</span> <span class="keywordtype">void</span>* binary, <a class="code" href="types_8h.html#afaa62991928fb9fb18ff0db62a040aba">u32</a> size, <a class="code" href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a> progMask, <a class="code" href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a> dataMask);</div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="comment">/// Initializes NDSP.</span></div>
|
|
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="ndsp_8h.html#af291186c61a1899c748aac58662d7ba4"> 95</a></span> <span class="comment"></span><a class="code" href="types_8h.html#ac830bf5a4f2cf8273f61ab99a46cf163">Result</a> <a class="code" href="ndsp_8h.html#af291186c61a1899c748aac58662d7ba4">ndspInit</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="comment">/// Exits NDSP.</span></div>
|
|
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="ndsp_8h.html#aa677674b20004d3d5fd620bdc1cb8afa"> 98</a></span> <span class="comment"></span><span class="keywordtype">void</span> <a class="code" href="ndsp_8h.html#aa677674b20004d3d5fd620bdc1cb8afa">ndspExit</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> <span class="comment"> * @brief Gets the number of dropped sound frames.</span></div>
|
|
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> <span class="comment"> * @return The number of dropped sound frames.</span></div>
|
|
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="ndsp_8h.html#a103449d7ddeb2814f6105916f3dfd11f"> 104</a></span> <a class="code" href="types_8h.html#afaa62991928fb9fb18ff0db62a040aba">u32</a> <a class="code" href="ndsp_8h.html#a103449d7ddeb2814f6105916f3dfd11f">ndspGetDroppedFrames</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="comment"> * @brief Gets the total sound frame count.</span></div>
|
|
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span> <span class="comment"> * @return The total sound frame count.</span></div>
|
|
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="ndsp_8h.html#a8b7e40b247efd6949e4a18a81895739e"> 110</a></span> <a class="code" href="types_8h.html#afaa62991928fb9fb18ff0db62a040aba">u32</a> <a class="code" href="ndsp_8h.html#a8b7e40b247efd6949e4a18a81895739e">ndspGetFrameCount</a>(<span class="keywordtype">void</span>);<span class="comment"></span></div>
|
|
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="comment">///@}</span></div>
|
|
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="comment"></span><span class="comment"></span> </div>
|
|
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="comment">///@name General parameters</span></div>
|
|
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="comment">///@{</span></div>
|
|
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="comment"></span><span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> <span class="comment"> * @brief Sets the master volume.</span></div>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> <span class="comment"> * @param volume Volume to set. Defaults to 1.0f.</span></div>
|
|
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="ndsp_8h.html#aa9c115610bf7827b73edbc2579e4b18b"> 119</a></span> <span class="keywordtype">void</span> <a class="code" href="ndsp_8h.html#aa9c115610bf7827b73edbc2579e4b18b">ndspSetMasterVol</a>(<span class="keywordtype">float</span> volume);</div>
|
|
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <span class="comment"> * @brief Gets the master volume.</span></div>
|
|
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> <span class="comment"> * @return The master volume.</span></div>
|
|
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="ndsp_8h.html#a48a77b511ac2dd67fbe75c759f1ab53d"> 125</a></span> <span class="keywordtype">float</span> <a class="code" href="ndsp_8h.html#a48a77b511ac2dd67fbe75c759f1ab53d">ndspGetMasterVol</a>(<span class="keywordtype">void</span>); </div>
|
|
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span> <span class="comment"> * @brief Sets the output mode.</span></div>
|
|
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span> <span class="comment"> * @param mode Output mode to set. Defaults to NDSP_OUTPUT_STEREO.</span></div>
|
|
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="ndsp_8h.html#a49a1a618032d220adf0007353273ebc0"> 131</a></span> <span class="keywordtype">void</span> <a class="code" href="ndsp_8h.html#a49a1a618032d220adf0007353273ebc0">ndspSetOutputMode</a>(<a class="code" href="ndsp_8h.html#aa9cfcfee3c85f67dadf1091b9b8bdcfd">ndspOutputMode</a> mode);</div>
|
|
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> <span class="comment"> * @brief Gets the output mode.</span></div>
|
|
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="comment"> * @return The output mode.</span></div>
|
|
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="ndsp_8h.html#a92e686cb96ab1ad4271dab11b85e98e3"> 137</a></span> <a class="code" href="ndsp_8h.html#aa9cfcfee3c85f67dadf1091b9b8bdcfd">ndspOutputMode</a> <a class="code" href="ndsp_8h.html#a92e686cb96ab1ad4271dab11b85e98e3">ndspGetOutputMode</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="comment"> * @brief Sets the clipping mode.</span></div>
|
|
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span> <span class="comment"> * @param mode Clipping mode to set. Defaults to NDSP_CLIP_SOFT.</span></div>
|
|
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="ndsp_8h.html#ad294c6cec5824d53a92a2a9db43f672a"> 143</a></span> <span class="keywordtype">void</span> <a class="code" href="ndsp_8h.html#ad294c6cec5824d53a92a2a9db43f672a">ndspSetClippingMode</a>(<a class="code" href="ndsp_8h.html#a256d7e48bf7174660fc538ac396b9b19">ndspClippingMode</a> mode);</div>
|
|
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="comment"> * @brief Gets the clipping mode.</span></div>
|
|
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="comment"> * @return The clipping mode.</span></div>
|
|
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="ndsp_8h.html#a727572e06db906509d900c9a763bc7d3"> 149</a></span> <a class="code" href="ndsp_8h.html#a256d7e48bf7174660fc538ac396b9b19">ndspClippingMode</a> <a class="code" href="ndsp_8h.html#a727572e06db906509d900c9a763bc7d3">ndspGetClippingMode</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> <span class="comment"> * @brief Sets the output count.</span></div>
|
|
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span> <span class="comment"> * @param count Output count to set. Defaults to 2.</span></div>
|
|
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="ndsp_8h.html#a15e3d9f39a89eb0231dc4f9b272e42be"> 155</a></span> <span class="keywordtype">void</span> <a class="code" href="ndsp_8h.html#a15e3d9f39a89eb0231dc4f9b272e42be">ndspSetOutputCount</a>(<span class="keywordtype">int</span> count);</div>
|
|
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="comment"> * @brief Gets the output count.</span></div>
|
|
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <span class="comment"> * @return The output count.</span></div>
|
|
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="ndsp_8h.html#aca1e2aa8184a66fd6d0640672fae7c54"> 161</a></span> <span class="keywordtype">int</span> <a class="code" href="ndsp_8h.html#aca1e2aa8184a66fd6d0640672fae7c54">ndspGetOutputCount</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> <span class="comment"> * @brief Sets the wave buffer to capture audio to.</span></div>
|
|
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span> <span class="comment"> * @param capture Wave buffer to capture to.</span></div>
|
|
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="ndsp_8h.html#ac5271edca9a280bca385295aea413a84"> 167</a></span> <span class="keywordtype">void</span> <a class="code" href="ndsp_8h.html#ac5271edca9a280bca385295aea413a84">ndspSetCapture</a>(ndspWaveBuf* capture);</div>
|
|
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span> <span class="comment"> * @brief Sets the sound frame callback.</span></div>
|
|
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span> <span class="comment"> * @param callback Callback to set.</span></div>
|
|
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span> <span class="comment"> * @param data User-defined data to pass to the callback.</span></div>
|
|
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00174"></a><span class="lineno"><a class="line" href="ndsp_8h.html#a6e54ee9185248b1d4a120396bfbf5603"> 174</a></span> <span class="keywordtype">void</span> <a class="code" href="ndsp_8h.html#a6e54ee9185248b1d4a120396bfbf5603">ndspSetCallback</a>(<a class="code" href="ndsp_8h.html#a7b56d354bc3e6300c2463e54cdc5c29f">ndspCallback</a> callback, <span class="keywordtype">void</span>* data);<span class="comment"></span></div>
|
|
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span> <span class="comment">///@}</span></div>
|
|
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> <span class="comment"></span><span class="comment"></span> </div>
|
|
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span> <span class="comment">///@name Surround</span></div>
|
|
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span> <span class="comment">///@{</span></div>
|
|
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span> <span class="comment"></span><span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span> <span class="comment"> * @brief Sets the surround sound depth.</span></div>
|
|
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span> <span class="comment"> * @param depth Depth to set. Defaults to 0x7FFF.</span></div>
|
|
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="ndsp_8h.html#ac2490547f4cc87ce71bd22aa49366649"> 183</a></span> <span class="keywordtype">void</span> <a class="code" href="ndsp_8h.html#ac2490547f4cc87ce71bd22aa49366649">ndspSurroundSetDepth</a>(<a class="code" href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a> depth);</div>
|
|
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> <span class="comment"> * @brief Gets the surround sound depth.</span></div>
|
|
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> <span class="comment"> * @return The surround sound depth.</span></div>
|
|
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="ndsp_8h.html#a759dcdad6b63562605ce74526d57a0a5"> 189</a></span> <a class="code" href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a> <a class="code" href="ndsp_8h.html#a759dcdad6b63562605ce74526d57a0a5">ndspSurroundGetDepth</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span> <span class="comment"> * @brief Sets the surround sound position.</span></div>
|
|
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span> <span class="comment"> * @param pos Position to set. Defaults to NDSP_SPKPOS_SQUARE.</span></div>
|
|
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="ndsp_8h.html#a4a946928ccdd63672289b74302a39dfa"> 195</a></span> <span class="keywordtype">void</span> <a class="code" href="ndsp_8h.html#a4a946928ccdd63672289b74302a39dfa">ndspSurroundSetPos</a>(<a class="code" href="ndsp_8h.html#aaa155e6e3bd6e21c43a7bbf7466f26d4">ndspSpeakerPos</a> pos);</div>
|
|
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span> <span class="comment"> * @brief Gets the surround sound position.</span></div>
|
|
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span> <span class="comment"> * @return The surround sound speaker position.</span></div>
|
|
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00201"></a><span class="lineno"><a class="line" href="ndsp_8h.html#a29442221a5f36528788951f2c7bd4fff"> 201</a></span> <a class="code" href="ndsp_8h.html#aaa155e6e3bd6e21c43a7bbf7466f26d4">ndspSpeakerPos</a> <a class="code" href="ndsp_8h.html#a29442221a5f36528788951f2c7bd4fff">ndspSurroundGetPos</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span> <span class="comment"> * @brief Sets the surround sound rear ratio.</span></div>
|
|
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> <span class="comment"> * @param ratio Rear ratio to set. Defaults to 0x8000.</span></div>
|
|
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="ndsp_8h.html#afbada5995eafed2c04a12a124e752fa1"> 207</a></span> <span class="keywordtype">void</span> <a class="code" href="ndsp_8h.html#afbada5995eafed2c04a12a124e752fa1">ndspSurroundSetRearRatio</a>(<a class="code" href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a> ratio);</div>
|
|
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span> <span class="comment"> * @brief Gets the surround sound rear ratio.</span></div>
|
|
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span> <span class="comment"> * @return The rear ratio.</span></div>
|
|
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00213"></a><span class="lineno"><a class="line" href="ndsp_8h.html#a34bd63715a28ab4f8faa367d841b4904"> 213</a></span> <a class="code" href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a> <a class="code" href="ndsp_8h.html#a34bd63715a28ab4f8faa367d841b4904">ndspSurroundGetRearRatio</a>(<span class="keywordtype">void</span>);<span class="comment"></span></div>
|
|
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span> <span class="comment">///@}</span></div>
|
|
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span> <span class="comment"></span><span class="comment"></span> </div>
|
|
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> <span class="comment">///@name Auxiliary output</span></div>
|
|
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span> <span class="comment">///@{</span></div>
|
|
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span> <span class="comment"></span><span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00219"></a><span class="lineno"> 219</span> <span class="comment"> * @brief Configures whether an auxiliary output is enabled.</span></div>
|
|
<div class="line"><a name="l00220"></a><span class="lineno"> 220</span> <span class="comment"> * @param id ID of the auxiliary output.</span></div>
|
|
<div class="line"><a name="l00221"></a><span class="lineno"> 221</span> <span class="comment"> * @param enable Whether to enable the auxiliary output.</span></div>
|
|
<div class="line"><a name="l00222"></a><span class="lineno"> 222</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00223"></a><span class="lineno"><a class="line" href="ndsp_8h.html#a97972972fe7da567764ea131cc24839e"> 223</a></span> <span class="keywordtype">void</span> <a class="code" href="ndsp_8h.html#a97972972fe7da567764ea131cc24839e">ndspAuxSetEnable</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keywordtype">bool</span> enable);</div>
|
|
<div class="line"><a name="l00224"></a><span class="lineno"> 224</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00225"></a><span class="lineno"> 225</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00226"></a><span class="lineno"> 226</span> <span class="comment"> * @brief Gets whether auxiliary output is enabled.</span></div>
|
|
<div class="line"><a name="l00227"></a><span class="lineno"> 227</span> <span class="comment"> * @param id ID of the auxiliary output.</span></div>
|
|
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span> <span class="comment"> * @return Whether auxiliary output is enabled.</span></div>
|
|
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00230"></a><span class="lineno"><a class="line" href="ndsp_8h.html#a32b7786e218a8478446d943cf4d8fa99"> 230</a></span> <span class="keywordtype">bool</span> <a class="code" href="ndsp_8h.html#a32b7786e218a8478446d943cf4d8fa99">ndspAuxIsEnabled</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>);</div>
|
|
<div class="line"><a name="l00231"></a><span class="lineno"> 231</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00232"></a><span class="lineno"> 232</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00233"></a><span class="lineno"> 233</span> <span class="comment"> * @brief Configures whether an auxiliary output should use front bypass.</span></div>
|
|
<div class="line"><a name="l00234"></a><span class="lineno"> 234</span> <span class="comment"> * @param id ID of the auxiliary output.</span></div>
|
|
<div class="line"><a name="l00235"></a><span class="lineno"> 235</span> <span class="comment"> * @param bypass Whether to use front bypass.</span></div>
|
|
<div class="line"><a name="l00236"></a><span class="lineno"> 236</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00237"></a><span class="lineno"><a class="line" href="ndsp_8h.html#a6afdf67a090c45e19cf3c520978fdbb3"> 237</a></span> <span class="keywordtype">void</span> <a class="code" href="ndsp_8h.html#a6afdf67a090c45e19cf3c520978fdbb3">ndspAuxSetFrontBypass</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keywordtype">bool</span> bypass);</div>
|
|
<div class="line"><a name="l00238"></a><span class="lineno"> 238</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00239"></a><span class="lineno"> 239</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00240"></a><span class="lineno"> 240</span> <span class="comment"> * @brief Gets whether auxiliary output front bypass is enabled.</span></div>
|
|
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span> <span class="comment"> * @param id ID of the auxiliary output.</span></div>
|
|
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span> <span class="comment"> * @return Whether auxiliary output front bypass is enabled.</span></div>
|
|
<div class="line"><a name="l00243"></a><span class="lineno"> 243</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00244"></a><span class="lineno"><a class="line" href="ndsp_8h.html#a08dfa162e7c8b645b4bcf6a30cc89d33"> 244</a></span> <span class="keywordtype">bool</span> <a class="code" href="ndsp_8h.html#a08dfa162e7c8b645b4bcf6a30cc89d33">ndspAuxGetFrontBypass</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>);</div>
|
|
<div class="line"><a name="l00245"></a><span class="lineno"> 245</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00246"></a><span class="lineno"> 246</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00247"></a><span class="lineno"> 247</span> <span class="comment"> * @brief Sets the volume of an auxiliary output.</span></div>
|
|
<div class="line"><a name="l00248"></a><span class="lineno"> 248</span> <span class="comment"> * @param id ID of the auxiliary output.</span></div>
|
|
<div class="line"><a name="l00249"></a><span class="lineno"> 249</span> <span class="comment"> * @param volume Volume to set.</span></div>
|
|
<div class="line"><a name="l00250"></a><span class="lineno"> 250</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00251"></a><span class="lineno"><a class="line" href="ndsp_8h.html#ac9cef68b897e24ba19f734879b5866da"> 251</a></span> <span class="keywordtype">void</span> <a class="code" href="ndsp_8h.html#ac9cef68b897e24ba19f734879b5866da">ndspAuxSetVolume</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>, <span class="keywordtype">float</span> volume);</div>
|
|
<div class="line"><a name="l00252"></a><span class="lineno"> 252</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00253"></a><span class="lineno"> 253</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span> <span class="comment"> * @brief Gets the volume of an auxiliary output.</span></div>
|
|
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span> <span class="comment"> * @param id ID of the auxiliary output.</span></div>
|
|
<div class="line"><a name="l00256"></a><span class="lineno"> 256</span> <span class="comment"> * @return Volume of the auxiliary output.</span></div>
|
|
<div class="line"><a name="l00257"></a><span class="lineno"> 257</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00258"></a><span class="lineno"><a class="line" href="ndsp_8h.html#a0a794d7a270ea45152aee0cb627ad5c9"> 258</a></span> <span class="keywordtype">float</span> <a class="code" href="ndsp_8h.html#a0a794d7a270ea45152aee0cb627ad5c9">ndspAuxGetVolume</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>);</div>
|
|
<div class="line"><a name="l00259"></a><span class="lineno"> 259</span> <span class="comment"></span> </div>
|
|
<div class="line"><a name="l00260"></a><span class="lineno"> 260</span> <span class="comment">/**</span></div>
|
|
<div class="line"><a name="l00261"></a><span class="lineno"> 261</span> <span class="comment"> * @brief Sets the callback of an auxiliary output.</span></div>
|
|
<div class="line"><a name="l00262"></a><span class="lineno"> 262</span> <span class="comment"> * @param id ID of the auxiliary output.</span></div>
|
|
<div class="line"><a name="l00263"></a><span class="lineno"> 263</span> <span class="comment"> * @param callback Callback to set.</span></div>
|
|
<div class="line"><a name="l00264"></a><span class="lineno"> 264</span> <span class="comment"> * @param data User-defined data to pass to the callback.</span></div>
|
|
<div class="line"><a name="l00265"></a><span class="lineno"> 265</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00266"></a><span class="lineno"><a class="line" href="ndsp_8h.html#a3d50a5aefd0c07489db48c012f14743d"> 266</a></span> <span class="keywordtype">void</span> <a class="code" href="ndsp_8h.html#a3d50a5aefd0c07489db48c012f14743d">ndspAuxSetCallback</a>(<span class="keywordtype">int</span> <span class="keywordtype">id</span>, <a class="code" href="ndsp_8h.html#ac7a08ac8efd0376efd6a6e1b1a064ca8">ndspAuxCallback</a> callback, <span class="keywordtype">void</span>* data);<span class="comment"></span></div>
|
|
<div class="line"><a name="l00267"></a><span class="lineno"> 267</span> <span class="comment">///@}</span></div>
|
|
<div class="ttc" id="andsp_8h_html_a08dfa162e7c8b645b4bcf6a30cc89d33"><div class="ttname"><a href="ndsp_8h.html#a08dfa162e7c8b645b4bcf6a30cc89d33">ndspAuxGetFrontBypass</a></div><div class="ttdeci">bool ndspAuxGetFrontBypass(int id)</div><div class="ttdoc">Gets whether auxiliary output front bypass is enabled.</div></div>
|
|
<div class="ttc" id="andsp_8h_html_a0a794d7a270ea45152aee0cb627ad5c9"><div class="ttname"><a href="ndsp_8h.html#a0a794d7a270ea45152aee0cb627ad5c9">ndspAuxGetVolume</a></div><div class="ttdeci">float ndspAuxGetVolume(int id)</div><div class="ttdoc">Gets the volume of an auxiliary output.</div></div>
|
|
<div class="ttc" id="andsp_8h_html_a103449d7ddeb2814f6105916f3dfd11f"><div class="ttname"><a href="ndsp_8h.html#a103449d7ddeb2814f6105916f3dfd11f">ndspGetDroppedFrames</a></div><div class="ttdeci">u32 ndspGetDroppedFrames(void)</div><div class="ttdoc">Gets the number of dropped sound frames.</div></div>
|
|
<div class="ttc" id="andsp_8h_html_a15e3d9f39a89eb0231dc4f9b272e42be"><div class="ttname"><a href="ndsp_8h.html#a15e3d9f39a89eb0231dc4f9b272e42be">ndspSetOutputCount</a></div><div class="ttdeci">void ndspSetOutputCount(int count)</div><div class="ttdoc">Sets the output count.</div></div>
|
|
<div class="ttc" id="andsp_8h_html_a256d7e48bf7174660fc538ac396b9b19"><div class="ttname"><a href="ndsp_8h.html#a256d7e48bf7174660fc538ac396b9b19">ndspClippingMode</a></div><div class="ttdeci">ndspClippingMode</div><div class="ttdef"><b>Definition:</b> ndsp.h:23</div></div>
|
|
<div class="ttc" id="andsp_8h_html_a256d7e48bf7174660fc538ac396b9b19a188005687d5eb075cfcd78016371c893"><div class="ttname"><a href="ndsp_8h.html#a256d7e48bf7174660fc538ac396b9b19a188005687d5eb075cfcd78016371c893">NDSP_CLIP_NORMAL</a></div><div class="ttdeci">@ NDSP_CLIP_NORMAL</div><div class="ttdoc">"Normal" clipping mode (?)</div><div class="ttdef"><b>Definition:</b> ndsp.h:24</div></div>
|
|
<div class="ttc" id="andsp_8h_html_a256d7e48bf7174660fc538ac396b9b19abf0c921ecef3f50bb4b9efb8338aa94a"><div class="ttname"><a href="ndsp_8h.html#a256d7e48bf7174660fc538ac396b9b19abf0c921ecef3f50bb4b9efb8338aa94a">NDSP_CLIP_SOFT</a></div><div class="ttdeci">@ NDSP_CLIP_SOFT</div><div class="ttdoc">"Soft" clipping mode (?)</div><div class="ttdef"><b>Definition:</b> ndsp.h:25</div></div>
|
|
<div class="ttc" id="andsp_8h_html_a29442221a5f36528788951f2c7bd4fff"><div class="ttname"><a href="ndsp_8h.html#a29442221a5f36528788951f2c7bd4fff">ndspSurroundGetPos</a></div><div class="ttdeci">ndspSpeakerPos ndspSurroundGetPos(void)</div><div class="ttdoc">Gets the surround sound position.</div></div>
|
|
<div class="ttc" id="andsp_8h_html_a32b7786e218a8478446d943cf4d8fa99"><div class="ttname"><a href="ndsp_8h.html#a32b7786e218a8478446d943cf4d8fa99">ndspAuxIsEnabled</a></div><div class="ttdeci">bool ndspAuxIsEnabled(int id)</div><div class="ttdoc">Gets whether auxiliary output is enabled.</div></div>
|
|
<div class="ttc" id="andsp_8h_html_a34bd63715a28ab4f8faa367d841b4904"><div class="ttname"><a href="ndsp_8h.html#a34bd63715a28ab4f8faa367d841b4904">ndspSurroundGetRearRatio</a></div><div class="ttdeci">u16 ndspSurroundGetRearRatio(void)</div><div class="ttdoc">Gets the surround sound rear ratio.</div></div>
|
|
<div class="ttc" id="andsp_8h_html_a3d50a5aefd0c07489db48c012f14743d"><div class="ttname"><a href="ndsp_8h.html#a3d50a5aefd0c07489db48c012f14743d">ndspAuxSetCallback</a></div><div class="ttdeci">void ndspAuxSetCallback(int id, ndspAuxCallback callback, void *data)</div><div class="ttdoc">Sets the callback of an auxiliary output.</div></div>
|
|
<div class="ttc" id="andsp_8h_html_a48a77b511ac2dd67fbe75c759f1ab53d"><div class="ttname"><a href="ndsp_8h.html#a48a77b511ac2dd67fbe75c759f1ab53d">ndspGetMasterVol</a></div><div class="ttdeci">float ndspGetMasterVol(void)</div><div class="ttdoc">Gets the master volume.</div></div>
|
|
<div class="ttc" id="andsp_8h_html_a49a1a618032d220adf0007353273ebc0"><div class="ttname"><a href="ndsp_8h.html#a49a1a618032d220adf0007353273ebc0">ndspSetOutputMode</a></div><div class="ttdeci">void ndspSetOutputMode(ndspOutputMode mode)</div><div class="ttdoc">Sets the output mode.</div></div>
|
|
<div class="ttc" id="andsp_8h_html_a4a946928ccdd63672289b74302a39dfa"><div class="ttname"><a href="ndsp_8h.html#a4a946928ccdd63672289b74302a39dfa">ndspSurroundSetPos</a></div><div class="ttdeci">void ndspSurroundSetPos(ndspSpeakerPos pos)</div><div class="ttdoc">Sets the surround sound position.</div></div>
|
|
<div class="ttc" id="andsp_8h_html_a50a0fa4fb97bbab2d0b862d0e1c2a341"><div class="ttname"><a href="ndsp_8h.html#a50a0fa4fb97bbab2d0b862d0e1c2a341">ndspUseComponent</a></div><div class="ttdeci">void ndspUseComponent(const void *binary, u32 size, u16 progMask, u16 dataMask)</div><div class="ttdoc">Sets up the DSP component.</div></div>
|
|
<div class="ttc" id="andsp_8h_html_a6afdf67a090c45e19cf3c520978fdbb3"><div class="ttname"><a href="ndsp_8h.html#a6afdf67a090c45e19cf3c520978fdbb3">ndspAuxSetFrontBypass</a></div><div class="ttdeci">void ndspAuxSetFrontBypass(int id, bool bypass)</div><div class="ttdoc">Configures whether an auxiliary output should use front bypass.</div></div>
|
|
<div class="ttc" id="andsp_8h_html_a6e54ee9185248b1d4a120396bfbf5603"><div class="ttname"><a href="ndsp_8h.html#a6e54ee9185248b1d4a120396bfbf5603">ndspSetCallback</a></div><div class="ttdeci">void ndspSetCallback(ndspCallback callback, void *data)</div><div class="ttdoc">Sets the sound frame callback.</div></div>
|
|
<div class="ttc" id="andsp_8h_html_a727572e06db906509d900c9a763bc7d3"><div class="ttname"><a href="ndsp_8h.html#a727572e06db906509d900c9a763bc7d3">ndspGetClippingMode</a></div><div class="ttdeci">ndspClippingMode ndspGetClippingMode(void)</div><div class="ttdoc">Gets the clipping mode.</div></div>
|
|
<div class="ttc" id="andsp_8h_html_a759dcdad6b63562605ce74526d57a0a5"><div class="ttname"><a href="ndsp_8h.html#a759dcdad6b63562605ce74526d57a0a5">ndspSurroundGetDepth</a></div><div class="ttdeci">u16 ndspSurroundGetDepth(void)</div><div class="ttdoc">Gets the surround sound depth.</div></div>
|
|
<div class="ttc" id="andsp_8h_html_a77867ab4129f63159b37bca3b652a798a35e846d5d3a0c40a9009efe2096381c2"><div class="ttname"><a href="ndsp_8h.html#a77867ab4129f63159b37bca3b652a798a35e846d5d3a0c40a9009efe2096381c2">NDSP_WBUF_QUEUED</a></div><div class="ttdeci">@ NDSP_WBUF_QUEUED</div><div class="ttdoc">The wave buffer is queued and has not been played yet.</div><div class="ttdef"><b>Definition:</b> ndsp.h:51</div></div>
|
|
<div class="ttc" id="andsp_8h_html_a77867ab4129f63159b37bca3b652a798a723dbfb7dc9c50cb1ff5a3fda4f4dfe1"><div class="ttname"><a href="ndsp_8h.html#a77867ab4129f63159b37bca3b652a798a723dbfb7dc9c50cb1ff5a3fda4f4dfe1">NDSP_WBUF_FREE</a></div><div class="ttdeci">@ NDSP_WBUF_FREE</div><div class="ttdoc">The wave buffer is not queued.</div><div class="ttdef"><b>Definition:</b> ndsp.h:50</div></div>
|
|
<div class="ttc" id="andsp_8h_html_a77867ab4129f63159b37bca3b652a798ab703579b9808d95a1c231452e70948a8"><div class="ttname"><a href="ndsp_8h.html#a77867ab4129f63159b37bca3b652a798ab703579b9808d95a1c231452e70948a8">NDSP_WBUF_PLAYING</a></div><div class="ttdeci">@ NDSP_WBUF_PLAYING</div><div class="ttdoc">The wave buffer is playing right now.</div><div class="ttdef"><b>Definition:</b> ndsp.h:52</div></div>
|
|
<div class="ttc" id="andsp_8h_html_a77867ab4129f63159b37bca3b652a798ad47b533bf89b23c67243aa19e889bd68"><div class="ttname"><a href="ndsp_8h.html#a77867ab4129f63159b37bca3b652a798ad47b533bf89b23c67243aa19e889bd68">NDSP_WBUF_DONE</a></div><div class="ttdeci">@ NDSP_WBUF_DONE</div><div class="ttdoc">The wave buffer has finished being played.</div><div class="ttdef"><b>Definition:</b> ndsp.h:53</div></div>
|
|
<div class="ttc" id="andsp_8h_html_a7b56d354bc3e6300c2463e54cdc5c29f"><div class="ttname"><a href="ndsp_8h.html#a7b56d354bc3e6300c2463e54cdc5c29f">ndspCallback</a></div><div class="ttdeci">void(* ndspCallback)(void *data)</div><div class="ttdoc">Sound frame callback function. (data = User provided data)</div><div class="ttdef"><b>Definition:</b> ndsp.h:78</div></div>
|
|
<div class="ttc" id="andsp_8h_html_a8b7e40b247efd6949e4a18a81895739e"><div class="ttname"><a href="ndsp_8h.html#a8b7e40b247efd6949e4a18a81895739e">ndspGetFrameCount</a></div><div class="ttdeci">u32 ndspGetFrameCount(void)</div><div class="ttdoc">Gets the total sound frame count.</div></div>
|
|
<div class="ttc" id="andsp_8h_html_a92e686cb96ab1ad4271dab11b85e98e3"><div class="ttname"><a href="ndsp_8h.html#a92e686cb96ab1ad4271dab11b85e98e3">ndspGetOutputMode</a></div><div class="ttdeci">ndspOutputMode ndspGetOutputMode(void)</div><div class="ttdoc">Gets the output mode.</div></div>
|
|
<div class="ttc" id="andsp_8h_html_a97972972fe7da567764ea131cc24839e"><div class="ttname"><a href="ndsp_8h.html#a97972972fe7da567764ea131cc24839e">ndspAuxSetEnable</a></div><div class="ttdeci">void ndspAuxSetEnable(int id, bool enable)</div><div class="ttdoc">Configures whether an auxiliary output is enabled.</div></div>
|
|
<div class="ttc" id="andsp_8h_html_aa677674b20004d3d5fd620bdc1cb8afa"><div class="ttname"><a href="ndsp_8h.html#aa677674b20004d3d5fd620bdc1cb8afa">ndspExit</a></div><div class="ttdeci">void ndspExit(void)</div><div class="ttdoc">Exits NDSP.</div></div>
|
|
<div class="ttc" id="andsp_8h_html_aa9c115610bf7827b73edbc2579e4b18b"><div class="ttname"><a href="ndsp_8h.html#aa9c115610bf7827b73edbc2579e4b18b">ndspSetMasterVol</a></div><div class="ttdeci">void ndspSetMasterVol(float volume)</div><div class="ttdoc">Sets the master volume.</div></div>
|
|
<div class="ttc" id="andsp_8h_html_aa9cfcfee3c85f67dadf1091b9b8bdcfd"><div class="ttname"><a href="ndsp_8h.html#aa9cfcfee3c85f67dadf1091b9b8bdcfd">ndspOutputMode</a></div><div class="ttdeci">ndspOutputMode</div><div class="ttdef"><b>Definition:</b> ndsp.h:15</div></div>
|
|
<div class="ttc" id="andsp_8h_html_aa9cfcfee3c85f67dadf1091b9b8bdcfda901dbb3dd6f7588228ca0052b3b5ca55"><div class="ttname"><a href="ndsp_8h.html#aa9cfcfee3c85f67dadf1091b9b8bdcfda901dbb3dd6f7588228ca0052b3b5ca55">NDSP_OUTPUT_MONO</a></div><div class="ttdeci">@ NDSP_OUTPUT_MONO</div><div class="ttdoc">Mono sound.</div><div class="ttdef"><b>Definition:</b> ndsp.h:16</div></div>
|
|
<div class="ttc" id="andsp_8h_html_aa9cfcfee3c85f67dadf1091b9b8bdcfdad0643ea33ee4590c7239f1eec1fe9fd1"><div class="ttname"><a href="ndsp_8h.html#aa9cfcfee3c85f67dadf1091b9b8bdcfdad0643ea33ee4590c7239f1eec1fe9fd1">NDSP_OUTPUT_STEREO</a></div><div class="ttdeci">@ NDSP_OUTPUT_STEREO</div><div class="ttdoc">Stereo sound.</div><div class="ttdef"><b>Definition:</b> ndsp.h:17</div></div>
|
|
<div class="ttc" id="andsp_8h_html_aa9cfcfee3c85f67dadf1091b9b8bdcfdae0c412a650b7b63783a8e0a3d84666e4"><div class="ttname"><a href="ndsp_8h.html#aa9cfcfee3c85f67dadf1091b9b8bdcfdae0c412a650b7b63783a8e0a3d84666e4">NDSP_OUTPUT_SURROUND</a></div><div class="ttdeci">@ NDSP_OUTPUT_SURROUND</div><div class="ttdoc">3D Surround sound</div><div class="ttdef"><b>Definition:</b> ndsp.h:18</div></div>
|
|
<div class="ttc" id="andsp_8h_html_aaa155e6e3bd6e21c43a7bbf7466f26d4"><div class="ttname"><a href="ndsp_8h.html#aaa155e6e3bd6e21c43a7bbf7466f26d4">ndspSpeakerPos</a></div><div class="ttdeci">ndspSpeakerPos</div><div class="ttdef"><b>Definition:</b> ndsp.h:30</div></div>
|
|
<div class="ttc" id="andsp_8h_html_aaa155e6e3bd6e21c43a7bbf7466f26d4a26bcddb04c06a3e782b84c43edd98d4c"><div class="ttname"><a href="ndsp_8h.html#aaa155e6e3bd6e21c43a7bbf7466f26d4a26bcddb04c06a3e782b84c43edd98d4c">NDSP_SPKPOS_WIDE</a></div><div class="ttdeci">@ NDSP_SPKPOS_WIDE</div><div class="ttdoc">?</div><div class="ttdef"><b>Definition:</b> ndsp.h:32</div></div>
|
|
<div class="ttc" id="andsp_8h_html_aaa155e6e3bd6e21c43a7bbf7466f26d4a3be9513896beef2994022864ed335911"><div class="ttname"><a href="ndsp_8h.html#aaa155e6e3bd6e21c43a7bbf7466f26d4a3be9513896beef2994022864ed335911">NDSP_SPKPOS_NUM</a></div><div class="ttdeci">@ NDSP_SPKPOS_NUM</div><div class="ttdoc">?</div><div class="ttdef"><b>Definition:</b> ndsp.h:33</div></div>
|
|
<div class="ttc" id="andsp_8h_html_aaa155e6e3bd6e21c43a7bbf7466f26d4a6534cb3b5d41add240139d97c0d92cef"><div class="ttname"><a href="ndsp_8h.html#aaa155e6e3bd6e21c43a7bbf7466f26d4a6534cb3b5d41add240139d97c0d92cef">NDSP_SPKPOS_SQUARE</a></div><div class="ttdeci">@ NDSP_SPKPOS_SQUARE</div><div class="ttdoc">?</div><div class="ttdef"><b>Definition:</b> ndsp.h:31</div></div>
|
|
<div class="ttc" id="andsp_8h_html_ac2490547f4cc87ce71bd22aa49366649"><div class="ttname"><a href="ndsp_8h.html#ac2490547f4cc87ce71bd22aa49366649">ndspSurroundSetDepth</a></div><div class="ttdeci">void ndspSurroundSetDepth(u16 depth)</div><div class="ttdoc">Sets the surround sound depth.</div></div>
|
|
<div class="ttc" id="andsp_8h_html_ac5271edca9a280bca385295aea413a84"><div class="ttname"><a href="ndsp_8h.html#ac5271edca9a280bca385295aea413a84">ndspSetCapture</a></div><div class="ttdeci">void ndspSetCapture(ndspWaveBuf *capture)</div><div class="ttdoc">Sets the wave buffer to capture audio to.</div></div>
|
|
<div class="ttc" id="andsp_8h_html_ac7a08ac8efd0376efd6a6e1b1a064ca8"><div class="ttname"><a href="ndsp_8h.html#ac7a08ac8efd0376efd6a6e1b1a064ca8">ndspAuxCallback</a></div><div class="ttdeci">void(* ndspAuxCallback)(void *data, int nsamples, void *samples[4])</div><div class="ttdoc">Auxiliary output callback function. (data = User provided data, nsamples = Number of samples,...</div><div class="ttdef"><b>Definition:</b> ndsp.h:80</div></div>
|
|
<div class="ttc" id="andsp_8h_html_ac9cef68b897e24ba19f734879b5866da"><div class="ttname"><a href="ndsp_8h.html#ac9cef68b897e24ba19f734879b5866da">ndspAuxSetVolume</a></div><div class="ttdeci">void ndspAuxSetVolume(int id, float volume)</div><div class="ttdoc">Sets the volume of an auxiliary output.</div></div>
|
|
<div class="ttc" id="andsp_8h_html_aca1e2aa8184a66fd6d0640672fae7c54"><div class="ttname"><a href="ndsp_8h.html#aca1e2aa8184a66fd6d0640672fae7c54">ndspGetOutputCount</a></div><div class="ttdeci">int ndspGetOutputCount(void)</div><div class="ttdoc">Gets the output count.</div></div>
|
|
<div class="ttc" id="andsp_8h_html_ad294c6cec5824d53a92a2a9db43f672a"><div class="ttname"><a href="ndsp_8h.html#ad294c6cec5824d53a92a2a9db43f672a">ndspSetClippingMode</a></div><div class="ttdeci">void ndspSetClippingMode(ndspClippingMode mode)</div><div class="ttdoc">Sets the clipping mode.</div></div>
|
|
<div class="ttc" id="andsp_8h_html_af291186c61a1899c748aac58662d7ba4"><div class="ttname"><a href="ndsp_8h.html#af291186c61a1899c748aac58662d7ba4">ndspInit</a></div><div class="ttdeci">Result ndspInit(void)</div><div class="ttdoc">Initializes NDSP.</div></div>
|
|
<div class="ttc" id="andsp_8h_html_afbada5995eafed2c04a12a124e752fa1"><div class="ttname"><a href="ndsp_8h.html#afbada5995eafed2c04a12a124e752fa1">ndspSurroundSetRearRatio</a></div><div class="ttdeci">void ndspSurroundSetRearRatio(u16 ratio)</div><div class="ttdoc">Sets the surround sound rear ratio.</div></div>
|
|
<div class="ttc" id="aos_8h_html"><div class="ttname"><a href="os_8h.html">os.h</a></div><div class="ttdoc">OS related stuff.</div></div>
|
|
<div class="ttc" id="astructndspAdpcmData_html"><div class="ttname"><a href="structndspAdpcmData.html">ndspAdpcmData</a></div><div class="ttdoc">ADPCM data.</div><div class="ttdef"><b>Definition:</b> ndsp.h:38</div></div>
|
|
<div class="ttc" id="astructndspAdpcmData_html_a8cb7064cd24c0a9af97652d5d6886fa7"><div class="ttname"><a href="structndspAdpcmData.html#a8cb7064cd24c0a9af97652d5d6886fa7">ndspAdpcmData::history0</a></div><div class="ttdeci">s16 history0</div><div class="ttdoc">Last outputted PCM16 sample.</div><div class="ttdef"><b>Definition:</b> ndsp.h:40</div></div>
|
|
<div class="ttc" id="astructndspAdpcmData_html_aa1c3f2d84437b3c73114274d1e57a374"><div class="ttname"><a href="structndspAdpcmData.html#aa1c3f2d84437b3c73114274d1e57a374">ndspAdpcmData::history1</a></div><div class="ttdeci">s16 history1</div><div class="ttdoc">Second to last outputted PCM16 sample.</div><div class="ttdef"><b>Definition:</b> ndsp.h:41</div></div>
|
|
<div class="ttc" id="astructndspAdpcmData_html_aec31f142f53dead462fe78e16b43c8da"><div class="ttname"><a href="structndspAdpcmData.html#aec31f142f53dead462fe78e16b43c8da">ndspAdpcmData::index</a></div><div class="ttdeci">u16 index</div><div class="ttdoc">Current predictor index.</div><div class="ttdef"><b>Definition:</b> ndsp.h:39</div></div>
|
|
<div class="ttc" id="astructtag__ndspWaveBuf_html"><div class="ttname"><a href="structtag__ndspWaveBuf.html">tag_ndspWaveBuf</a></div><div class="ttdoc">Wave buffer struct.</div><div class="ttdef"><b>Definition:</b> ndsp.h:58</div></div>
|
|
<div class="ttc" id="astructtag__ndspWaveBuf_html_a022acadc9a54ab814274c83460f7394d"><div class="ttname"><a href="structtag__ndspWaveBuf.html#a022acadc9a54ab814274c83460f7394d">tag_ndspWaveBuf::data_vaddr</a></div><div class="ttdeci">const void * data_vaddr</div><div class="ttdoc">Data virtual address.</div><div class="ttdef"><b>Definition:</b> ndsp.h:64</div></div>
|
|
<div class="ttc" id="astructtag__ndspWaveBuf_html_a09159f3732f1e8dbee8590517efdb0f6"><div class="ttname"><a href="structtag__ndspWaveBuf.html#a09159f3732f1e8dbee8590517efdb0f6">tag_ndspWaveBuf::data_pcm8</a></div><div class="ttdeci">s8 * data_pcm8</div><div class="ttdoc">Pointer to PCM8 sample data.</div><div class="ttdef"><b>Definition:</b> ndsp.h:61</div></div>
|
|
<div class="ttc" id="astructtag__ndspWaveBuf_html_a227ff854f75d71f04bbea7fc48b364f6"><div class="ttname"><a href="structtag__ndspWaveBuf.html#a227ff854f75d71f04bbea7fc48b364f6">tag_ndspWaveBuf::next</a></div><div class="ttdeci">ndspWaveBuf * next</div><div class="ttdoc">Next buffer to play. Used internally, do not modify.</div><div class="ttdef"><b>Definition:</b> ndsp.h:74</div></div>
|
|
<div class="ttc" id="astructtag__ndspWaveBuf_html_a3c7ea7f11f9e714c385befa490f5079b"><div class="ttname"><a href="structtag__ndspWaveBuf.html#a3c7ea7f11f9e714c385befa490f5079b">tag_ndspWaveBuf::looping</a></div><div class="ttdeci">bool looping</div><div class="ttdoc">Whether to loop the buffer.</div><div class="ttdef"><b>Definition:</b> ndsp.h:70</div></div>
|
|
<div class="ttc" id="astructtag__ndspWaveBuf_html_a3f97b49b15a70f10152c14944a5c95ba"><div class="ttname"><a href="structtag__ndspWaveBuf.html#a3f97b49b15a70f10152c14944a5c95ba">tag_ndspWaveBuf::data_adpcm</a></div><div class="ttdeci">u8 * data_adpcm</div><div class="ttdoc">Pointer to DSPADPCM sample data.</div><div class="ttdef"><b>Definition:</b> ndsp.h:63</div></div>
|
|
<div class="ttc" id="astructtag__ndspWaveBuf_html_a47f038d687b5dfa121c510146a35d5d5"><div class="ttname"><a href="structtag__ndspWaveBuf.html#a47f038d687b5dfa121c510146a35d5d5">tag_ndspWaveBuf::sequence_id</a></div><div class="ttdeci">u16 sequence_id</div><div class="ttdoc">Sequence ID. Assigned automatically by ndspChnWaveBufAdd.</div><div class="ttdef"><b>Definition:</b> ndsp.h:73</div></div>
|
|
<div class="ttc" id="astructtag__ndspWaveBuf_html_a64256f46cb4f6122690f6c1e4b41f1c5"><div class="ttname"><a href="structtag__ndspWaveBuf.html#a64256f46cb4f6122690f6c1e4b41f1c5">tag_ndspWaveBuf::adpcm_data</a></div><div class="ttdeci">ndspAdpcmData * adpcm_data</div><div class="ttdoc">ADPCM data.</div><div class="ttdef"><b>Definition:</b> ndsp.h:67</div></div>
|
|
<div class="ttc" id="astructtag__ndspWaveBuf_html_a8be46881ae491c7e7df54e81289c7a96"><div class="ttname"><a href="structtag__ndspWaveBuf.html#a8be46881ae491c7e7df54e81289c7a96">tag_ndspWaveBuf::nsamples</a></div><div class="ttdeci">u32 nsamples</div><div class="ttdoc">Total number of samples (PCM8=bytes, PCM16=halfwords, DSPADPCM=nibbles without frame headers)</div><div class="ttdef"><b>Definition:</b> ndsp.h:66</div></div>
|
|
<div class="ttc" id="astructtag__ndspWaveBuf_html_a967b0ddea945fc5de1ce8334d2135358"><div class="ttname"><a href="structtag__ndspWaveBuf.html#a967b0ddea945fc5de1ce8334d2135358">tag_ndspWaveBuf::status</a></div><div class="ttdeci">u8 status</div><div class="ttdoc">Queuing/playback status.</div><div class="ttdef"><b>Definition:</b> ndsp.h:71</div></div>
|
|
<div class="ttc" id="astructtag__ndspWaveBuf_html_ab6347cf7fc44b90999544a4b2ad69a72"><div class="ttname"><a href="structtag__ndspWaveBuf.html#ab6347cf7fc44b90999544a4b2ad69a72">tag_ndspWaveBuf::data_pcm16</a></div><div class="ttdeci">s16 * data_pcm16</div><div class="ttdoc">Pointer to PCM16 sample data.</div><div class="ttdef"><b>Definition:</b> ndsp.h:62</div></div>
|
|
<div class="ttc" id="astructtag__ndspWaveBuf_html_affba548676133ea6e94d6215c7bc3cb6"><div class="ttname"><a href="structtag__ndspWaveBuf.html#affba548676133ea6e94d6215c7bc3cb6">tag_ndspWaveBuf::offset</a></div><div class="ttdeci">u32 offset</div><div class="ttdoc">Buffer offset. Only used for capture.</div><div class="ttdef"><b>Definition:</b> ndsp.h:69</div></div>
|
|
<div class="ttc" id="atypes_8h_html_a92c50087ca0e64fa93fc59402c55f8ca"><div class="ttname"><a href="types_8h.html#a92c50087ca0e64fa93fc59402c55f8ca">u8</a></div><div class="ttdeci">uint8_t u8</div><div class="ttdoc">would be nice if newlib had this already</div><div class="ttdef"><b>Definition:</b> types.h:21</div></div>
|
|
<div class="ttc" id="atypes_8h_html_a9e382f207c65ca13ab4ae98363aeda80"><div class="ttname"><a href="types_8h.html#a9e382f207c65ca13ab4ae98363aeda80">s8</a></div><div class="ttdeci">int8_t s8</div><div class="ttdoc">8-bit signed integer</div><div class="ttdef"><b>Definition:</b> types.h:26</div></div>
|
|
<div class="ttc" id="atypes_8h_html_aa980e2c02ba2305e0f489d5650655425"><div class="ttname"><a href="types_8h.html#aa980e2c02ba2305e0f489d5650655425">s16</a></div><div class="ttdeci">int16_t s16</div><div class="ttdoc">16-bit signed integer</div><div class="ttdef"><b>Definition:</b> types.h:27</div></div>
|
|
<div class="ttc" id="atypes_8h_html_ac830bf5a4f2cf8273f61ab99a46cf163"><div class="ttname"><a href="types_8h.html#ac830bf5a4f2cf8273f61ab99a46cf163">Result</a></div><div class="ttdeci">s32 Result</div><div class="ttdoc">Function result.</div><div class="ttdef"><b>Definition:</b> types.h:42</div></div>
|
|
<div class="ttc" id="atypes_8h_html_ace9d960e74685e2cd84b36132dbbf8aa"><div class="ttname"><a href="types_8h.html#ace9d960e74685e2cd84b36132dbbf8aa">u16</a></div><div class="ttdeci">uint16_t u16</div><div class="ttdoc">16-bit unsigned integer</div><div class="ttdef"><b>Definition:</b> types.h:22</div></div>
|
|
<div class="ttc" id="atypes_8h_html_afaa62991928fb9fb18ff0db62a040aba"><div class="ttname"><a href="types_8h.html#afaa62991928fb9fb18ff0db62a040aba">u32</a></div><div class="ttdeci">uint32_t u32</div><div class="ttdoc">32-bit unsigned integer</div><div class="ttdef"><b>Definition:</b> types.h:23</div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated 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
|
|
</small></address>
|
|
</body>
|
|
</html>
|