MCPcopy Create free account
hub / github.com/StrangeLoopsAudio/gRainbow / loadSpecBuffer

Method loadSpecBuffer

Source/Components/ArcSpectrogram.cpp:341–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341void ArcSpectrogram::loadSpecBuffer(Utils::SpecBuffer* buffer, ParamUI::SpecType type) {
342 if (buffer == nullptr || getWidth() == 0 || getHeight() == 0) return;
343 waitForThreadToExit(BUFFER_PROCESS_TIMEOUT);
344 if (mImagesComplete[type]) return;
345
346 // Only make image if component size has been set
347 mParameters.ui.specType = type;
348 mBuffers[mParameters.ui.specType] = buffer;
349 mIsProcessing = true;
350 startThread();
351}
352
353void ArcSpectrogram::loadWaveformBuffer(juce::AudioBuffer<float>* audioBuffer) {
354 if (audioBuffer == nullptr) return;

Callers 1

timerCallbackMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected