/usr/share/doc/libjuce/apiref/classAudioSource.html is in libjuce-doc 4.3.0~repack-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JUCE: AudioSource Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">JUCE
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</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><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pro-methods">Protected Member Functions</a> |
<a href="classAudioSource-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">AudioSource Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
</div><!--header-->
<div class="contents">
<p>Base class for objects that can produce a continuous stream of audio.
<a href="classAudioSource.html#details">More...</a></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
<img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for AudioSource:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center">
<img src="classAudioSource.png" usemap="#AudioSource_map" alt=""/>
<map id="AudioSource_map" name="AudioSource_map">
<area href="classAudioAppComponent.html" title="A base class for writing audio apps that stream from the audio i/o devices. " alt="AudioAppComponent" shape="rect" coords="205,56,400,80"/>
<area href="classChannelRemappingAudioSource.html" title="An AudioSource that takes the audio from another source, and re-maps its input and output channels to..." alt="ChannelRemappingAudioSource" shape="rect" coords="205,112,400,136"/>
<area href="classIIRFilterAudioSource.html" title="An AudioSource that performs an IIR filter on another source. " alt="IIRFilterAudioSource" shape="rect" coords="205,168,400,192"/>
<area href="classMixerAudioSource.html" title="An AudioSource that mixes together the output of a set of other AudioSources. " alt="MixerAudioSource" shape="rect" coords="205,224,400,248"/>
<area href="classPositionableAudioSource.html" title="A type of AudioSource which can be repositioned. " alt="PositionableAudioSource" shape="rect" coords="205,280,400,304"/>
<area href="classResamplingAudioSource.html" title="A type of AudioSource that takes an input source and changes its sample rate. " alt="ResamplingAudioSource" shape="rect" coords="205,336,400,360"/>
<area href="classReverbAudioSource.html" title="An AudioSource that uses the Reverb class to apply a reverb to another AudioSource. " alt="ReverbAudioSource" shape="rect" coords="205,392,400,416"/>
<area href="classToneGeneratorAudioSource.html" title="A simple AudioSource that generates a sine wave. " alt="ToneGeneratorAudioSource" shape="rect" coords="205,448,400,472"/>
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a38b04f6bf7ea63b6cf465213c164623b"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classAudioSource.html#a38b04f6bf7ea63b6cf465213c164623b">~AudioSource</a> ()</td></tr>
<tr class="memdesc:a38b04f6bf7ea63b6cf465213c164623b"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a38b04f6bf7ea63b6cf465213c164623b">More...</a><br /></td></tr>
<tr class="separator:a38b04f6bf7ea63b6cf465213c164623b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a653279dbd167f70e318fd280681dbddf"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classAudioSource.html#a653279dbd167f70e318fd280681dbddf">prepareToPlay</a> (int samplesPerBlockExpected, double sampleRate)=0</td></tr>
<tr class="memdesc:a653279dbd167f70e318fd280681dbddf"><td class="mdescLeft"> </td><td class="mdescRight">Tells the source to prepare for playing. <a href="#a653279dbd167f70e318fd280681dbddf">More...</a><br /></td></tr>
<tr class="separator:a653279dbd167f70e318fd280681dbddf"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7823bf0f1c43333eed41664c7994f290"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classAudioSource.html#a7823bf0f1c43333eed41664c7994f290">releaseResources</a> ()=0</td></tr>
<tr class="memdesc:a7823bf0f1c43333eed41664c7994f290"><td class="mdescLeft"> </td><td class="mdescRight">Allows the source to release anything it no longer needs after playback has stopped. <a href="#a7823bf0f1c43333eed41664c7994f290">More...</a><br /></td></tr>
<tr class="separator:a7823bf0f1c43333eed41664c7994f290"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a36fc2484ead8fb8dc03be57d09dd5735"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classAudioSource.html#a36fc2484ead8fb8dc03be57d09dd5735">getNextAudioBlock</a> (const <a class="el" href="structAudioSourceChannelInfo.html">AudioSourceChannelInfo</a> &bufferToFill)=0</td></tr>
<tr class="memdesc:a36fc2484ead8fb8dc03be57d09dd5735"><td class="mdescLeft"> </td><td class="mdescRight">Called repeatedly to fetch subsequent blocks of audio data. <a href="#a36fc2484ead8fb8dc03be57d09dd5735">More...</a><br /></td></tr>
<tr class="separator:a36fc2484ead8fb8dc03be57d09dd5735"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a5b8ec7dc3b76d7f219d8f77d5ccfbcef"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classAudioSource.html#a5b8ec7dc3b76d7f219d8f77d5ccfbcef">AudioSource</a> () noexcept</td></tr>
<tr class="memdesc:a5b8ec7dc3b76d7f219d8f77d5ccfbcef"><td class="mdescLeft"> </td><td class="mdescRight">Creates an <a class="el" href="classAudioSource.html" title="Base class for objects that can produce a continuous stream of audio. ">AudioSource</a>. <a href="#a5b8ec7dc3b76d7f219d8f77d5ccfbcef">More...</a><br /></td></tr>
<tr class="separator:a5b8ec7dc3b76d7f219d8f77d5ccfbcef"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Base class for objects that can produce a continuous stream of audio. </p>
<p>An <a class="el" href="classAudioSource.html" title="Base class for objects that can produce a continuous stream of audio. ">AudioSource</a> has two states: 'prepared' and 'unprepared'.</p>
<p>When a source needs to be played, it is first put into a 'prepared' state by a call to <a class="el" href="classAudioSource.html#a653279dbd167f70e318fd280681dbddf" title="Tells the source to prepare for playing. ">prepareToPlay()</a>, and then repeated calls will be made to its <a class="el" href="classAudioSource.html#a36fc2484ead8fb8dc03be57d09dd5735" title="Called repeatedly to fetch subsequent blocks of audio data. ">getNextAudioBlock()</a> method to process the audio data.</p>
<p>Once playback has finished, the <a class="el" href="classAudioSource.html#a7823bf0f1c43333eed41664c7994f290" title="Allows the source to release anything it no longer needs after playback has stopped. ">releaseResources()</a> method is called to put the stream back into an 'unprepared' state.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classAudioFormatReaderSource.html" title="A type of AudioSource that will read from an AudioFormatReader. ">AudioFormatReaderSource</a>, <a class="el" href="classResamplingAudioSource.html" title="A type of AudioSource that takes an input source and changes its sample rate. ">ResamplingAudioSource</a> </dd></dl>
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
<a id="a5b8ec7dc3b76d7f219d8f77d5ccfbcef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b8ec7dc3b76d7f219d8f77d5ccfbcef">§ </a></span>AudioSource()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">AudioSource::AudioSource </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">noexcept</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates an <a class="el" href="classAudioSource.html" title="Base class for objects that can produce a continuous stream of audio. ">AudioSource</a>. </p>
</div>
</div>
<a id="a38b04f6bf7ea63b6cf465213c164623b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a38b04f6bf7ea63b6cf465213c164623b">§ </a></span>~AudioSource()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual AudioSource::~AudioSource </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Destructor. </p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a653279dbd167f70e318fd280681dbddf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a653279dbd167f70e318fd280681dbddf">§ </a></span>prepareToPlay()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void AudioSource::prepareToPlay </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>samplesPerBlockExpected</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>sampleRate</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Tells the source to prepare for playing. </p>
<p>An <a class="el" href="classAudioSource.html" title="Base class for objects that can produce a continuous stream of audio. ">AudioSource</a> has two states: prepared and unprepared.</p>
<p>The <a class="el" href="classAudioSource.html#a653279dbd167f70e318fd280681dbddf" title="Tells the source to prepare for playing. ">prepareToPlay()</a> method is guaranteed to be called at least once on an 'unpreprared' source to put it into a 'prepared' state before any calls will be made to <a class="el" href="classAudioSource.html#a36fc2484ead8fb8dc03be57d09dd5735" title="Called repeatedly to fetch subsequent blocks of audio data. ">getNextAudioBlock()</a>. This callback allows the source to initialise any resources it might need when playing.</p>
<p>Once playback has finished, the <a class="el" href="classAudioSource.html#a7823bf0f1c43333eed41664c7994f290" title="Allows the source to release anything it no longer needs after playback has stopped. ">releaseResources()</a> method is called to put the stream back into an 'unprepared' state.</p>
<p>Note that this method could be called more than once in succession without a matching call to <a class="el" href="classAudioSource.html#a7823bf0f1c43333eed41664c7994f290" title="Allows the source to release anything it no longer needs after playback has stopped. ">releaseResources()</a>, so make sure your code is robust and can handle that kind of situation.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">samplesPerBlockExpected</td><td>the number of samples that the source will be expected to supply each time its <a class="el" href="classAudioSource.html#a36fc2484ead8fb8dc03be57d09dd5735" title="Called repeatedly to fetch subsequent blocks of audio data. ">getNextAudioBlock()</a> method is called. This number may vary slightly, because it will be dependent on audio hardware callbacks, and these aren't guaranteed to always use a constant block size, so the source should be able to cope with small variations. </td></tr>
<tr><td class="paramname">sampleRate</td><td>the sample rate that the output will be used at - this is needed by sources such as tone generators. </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classAudioSource.html#a7823bf0f1c43333eed41664c7994f290" title="Allows the source to release anything it no longer needs after playback has stopped. ">releaseResources</a>, <a class="el" href="classAudioSource.html#a36fc2484ead8fb8dc03be57d09dd5735" title="Called repeatedly to fetch subsequent blocks of audio data. ">getNextAudioBlock</a> </dd></dl>
<p>Implemented in <a class="el" href="classAudioTransportSource.html#a8d6683c6ff1d33298928a764d12ffba1">AudioTransportSource</a>, <a class="el" href="classChannelRemappingAudioSource.html#abe7b07c27ff2987fd6968f1db40caafa">ChannelRemappingAudioSource</a>, <a class="el" href="classMixerAudioSource.html#af774982c4a8726436f3e505e459cdf18">MixerAudioSource</a>, <a class="el" href="classBufferingAudioSource.html#aa7fccfe307c0c3f8c4c1af52b97cb6c1">BufferingAudioSource</a>, <a class="el" href="classResamplingAudioSource.html#a9fff0f513472ac19bade8f5c12cf4cfb">ResamplingAudioSource</a>, <a class="el" href="classAudioAppComponent.html#a86839d4efdb71c84f63da8051c0c13ad">AudioAppComponent</a>, <a class="el" href="classAudioFormatReaderSource.html#a5c69623e095398def8caa8dcaaf868af">AudioFormatReaderSource</a>, <a class="el" href="classReverbAudioSource.html#af8077a5e348be506347807afb25afee6">ReverbAudioSource</a>, <a class="el" href="classIIRFilterAudioSource.html#a136fa8f34b9f2f82dd8de3547a00f6a2">IIRFilterAudioSource</a>, and <a class="el" href="classToneGeneratorAudioSource.html#a35738ccc76573c3d00f6c9cfe2494a4b">ToneGeneratorAudioSource</a>.</p>
<p>Referenced by <a class="el" href="classAudioFormatReaderSource.html#a8cf967923624f7b75acafa3c397873da">AudioFormatReaderSource::getAudioFormatReader()</a>, <a class="el" href="classAudioTransportSource.html#a723be769b44f4334b947e3568e2b2d4a">AudioTransportSource::getGain()</a>, <a class="el" href="classResamplingAudioSource.html#af868951e30847cecd5f0729cecab722c">ResamplingAudioSource::getResamplingRatio()</a>, and <a class="el" href="classReverbAudioSource.html#a930435b2b93f74d00203b6794c41ac8e">ReverbAudioSource::isBypassed()</a>.</p>
</div>
</div>
<a id="a7823bf0f1c43333eed41664c7994f290"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7823bf0f1c43333eed41664c7994f290">§ </a></span>releaseResources()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void AudioSource::releaseResources </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Allows the source to release anything it no longer needs after playback has stopped. </p>
<p>This will be called when the source is no longer going to have its <a class="el" href="classAudioSource.html#a36fc2484ead8fb8dc03be57d09dd5735" title="Called repeatedly to fetch subsequent blocks of audio data. ">getNextAudioBlock()</a> method called, so it should release any spare memory, etc. that it might have allocated during the <a class="el" href="classAudioSource.html#a653279dbd167f70e318fd280681dbddf" title="Tells the source to prepare for playing. ">prepareToPlay()</a> call.</p>
<p>Note that there's no guarantee that <a class="el" href="classAudioSource.html#a653279dbd167f70e318fd280681dbddf" title="Tells the source to prepare for playing. ">prepareToPlay()</a> will actually have been called before <a class="el" href="classAudioSource.html#a7823bf0f1c43333eed41664c7994f290" title="Allows the source to release anything it no longer needs after playback has stopped. ">releaseResources()</a>, and it may be called more than once in succession, so make sure your code is robust and doesn't make any assumptions about when it will be called.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classAudioSource.html#a653279dbd167f70e318fd280681dbddf" title="Tells the source to prepare for playing. ">prepareToPlay</a>, <a class="el" href="classAudioSource.html#a36fc2484ead8fb8dc03be57d09dd5735" title="Called repeatedly to fetch subsequent blocks of audio data. ">getNextAudioBlock</a> </dd></dl>
<p>Implemented in <a class="el" href="classAudioTransportSource.html#a1efbef0a54aee220f2910c6dec9f7199">AudioTransportSource</a>, <a class="el" href="classChannelRemappingAudioSource.html#adec9a1e901cc8b88626f02aaa5582a85">ChannelRemappingAudioSource</a>, <a class="el" href="classAudioAppComponent.html#a70ea8262dddd0dbcd216a97c36796d66">AudioAppComponent</a>, <a class="el" href="classMixerAudioSource.html#aa4b64f534cadbd33e7aefcc6cee0f540">MixerAudioSource</a>, <a class="el" href="classBufferingAudioSource.html#a62ec9a6127f4728ecb84464f807b648b">BufferingAudioSource</a>, <a class="el" href="classResamplingAudioSource.html#ab070c5a74deddbd0702a8b21cea2c678">ResamplingAudioSource</a>, <a class="el" href="classAudioFormatReaderSource.html#a0f11379e2449d8108de40694bd6a268d">AudioFormatReaderSource</a>, <a class="el" href="classReverbAudioSource.html#a5150be0ceba566e4f8c4cf0f2bfebe74">ReverbAudioSource</a>, <a class="el" href="classIIRFilterAudioSource.html#a1a4939d75cdf79c7a1bdb5cd601e88aa">IIRFilterAudioSource</a>, and <a class="el" href="classToneGeneratorAudioSource.html#aa9ffad22e4fa81eade2b237618d3ada2">ToneGeneratorAudioSource</a>.</p>
<p>Referenced by <a class="el" href="classAudioFormatReaderSource.html#a8cf967923624f7b75acafa3c397873da">AudioFormatReaderSource::getAudioFormatReader()</a>, <a class="el" href="classAudioTransportSource.html#a723be769b44f4334b947e3568e2b2d4a">AudioTransportSource::getGain()</a>, <a class="el" href="classResamplingAudioSource.html#af868951e30847cecd5f0729cecab722c">ResamplingAudioSource::getResamplingRatio()</a>, and <a class="el" href="classReverbAudioSource.html#a930435b2b93f74d00203b6794c41ac8e">ReverbAudioSource::isBypassed()</a>.</p>
</div>
</div>
<a id="a36fc2484ead8fb8dc03be57d09dd5735"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a36fc2484ead8fb8dc03be57d09dd5735">§ </a></span>getNextAudioBlock()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void AudioSource::getNextAudioBlock </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structAudioSourceChannelInfo.html">AudioSourceChannelInfo</a> & </td>
<td class="paramname"><em>bufferToFill</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Called repeatedly to fetch subsequent blocks of audio data. </p>
<p>After calling the <a class="el" href="classAudioSource.html#a653279dbd167f70e318fd280681dbddf" title="Tells the source to prepare for playing. ">prepareToPlay()</a> method, this callback will be made each time the audio playback hardware (or whatever other destination the audio data is going to) needs another block of data.</p>
<p>It will generally be called on a high-priority system thread, or possibly even an interrupt, so be careful not to do too much work here, as that will cause audio glitches!</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="structAudioSourceChannelInfo.html" title="Used by AudioSource::getNextAudioBlock(). ">AudioSourceChannelInfo</a>, <a class="el" href="classAudioSource.html#a653279dbd167f70e318fd280681dbddf" title="Tells the source to prepare for playing. ">prepareToPlay</a>, <a class="el" href="classAudioSource.html#a7823bf0f1c43333eed41664c7994f290" title="Allows the source to release anything it no longer needs after playback has stopped. ">releaseResources</a> </dd></dl>
<p>Implemented in <a class="el" href="classAudioTransportSource.html#a7506340feb1e3cd0dac988f12a607fad">AudioTransportSource</a>, <a class="el" href="classChannelRemappingAudioSource.html#a7cc4e508799f79e4a7c750ea7a3c23f3">ChannelRemappingAudioSource</a>, <a class="el" href="classAudioAppComponent.html#a95597e162d39500971678a44ff3568ec">AudioAppComponent</a>, <a class="el" href="classMixerAudioSource.html#a256583fd3a65353ec64910868c116e79">MixerAudioSource</a>, <a class="el" href="classBufferingAudioSource.html#a53ed823e042d3b78ff7f11985d88042c">BufferingAudioSource</a>, <a class="el" href="classAudioFormatReaderSource.html#a9136e13b99da2e6a683d6cc8244ff565">AudioFormatReaderSource</a>, <a class="el" href="classResamplingAudioSource.html#ab5535c45e5b301c5fe8066a36cea4e5a">ResamplingAudioSource</a>, <a class="el" href="classReverbAudioSource.html#a05fd8b39aa2dbf21095376ffd346dda0">ReverbAudioSource</a>, <a class="el" href="classToneGeneratorAudioSource.html#a13a58f7e1b3a296ce2070bbe3df57263">ToneGeneratorAudioSource</a>, and <a class="el" href="classIIRFilterAudioSource.html#a30dd0315f98655cca03e578e115742de">IIRFilterAudioSource</a>.</p>
<p>Referenced by <a class="el" href="classAudioFormatReaderSource.html#a8cf967923624f7b75acafa3c397873da">AudioFormatReaderSource::getAudioFormatReader()</a>, <a class="el" href="classAudioTransportSource.html#a723be769b44f4334b947e3568e2b2d4a">AudioTransportSource::getGain()</a>, <a class="el" href="classResamplingAudioSource.html#af868951e30847cecd5f0729cecab722c">ResamplingAudioSource::getResamplingRatio()</a>, and <a class="el" href="classReverbAudioSource.html#a930435b2b93f74d00203b6794c41ac8e">ReverbAudioSource::isBypassed()</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="juce__AudioSource_8h.html">juce_AudioSource.h</a></li>
</ul>
</div><!-- contents -->
<hr class="footer"/>
<address class="footer"><small>All content © ROLI Ltd.</small></address><br/>
</body>
</html>
|