MCPcopy Create free account
hub / github.com/DamRsn/NeuralNote / clear

Method clear

NeuralNote/Source/SourceAudioManager.cpp:251–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251void SourceAudioManager::clear()
252{
253 if (mIsRecording) {
254 stopRecording();
255 }
256
257 mSourceAudio = {};
258 mDownsampledSourceAudio = {};
259
260 mNumSamplesAcquiredDown = 0;
261 mNumSamplesAcquired = 0;
262 mDuration = 0.0;
263
264 _deleteFilesToDelete();
265
266 mProcessor->getValueTree().setPropertyExcludingListener(this, NnId::SourceAudioNativeSrPathId, String(), nullptr);
267
268 mDroppedFilename = "";
269}
270
271AudioBuffer<float>& SourceAudioManager::getDownsampledSourceAudioForTranscription()
272{

Callers 7

resetMethod · 0.45
processBlockMethod · 0.45
startRecordingMethod · 0.45
stopRecordingMethod · 0.45
onFileDropMethod · 0.45
_deleteFilesToDeleteMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected