 href="#a8d9c8346aa9aa409cfed4a1101159c4c" title="Stop the capture.">stop()</a></code> in the destructor of your derived class, so that the recording thread finishes before your object is destroyed.</p>
<p>Usage example: </p><div class="fragment"><div class="line"><span class="keyword">class </span>CustomRecorder : <span class="keyword">public</span> <a class="code hl_class" href="classsf_1_1SoundRecorder.html">sf::SoundRecorder</a></div>
<div class="line">{</div>
<div class="line"><span class="keyword">pub