| 339 | } |
| 340 | |
| 341 | void 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 | |
| 353 | void ArcSpectrogram::loadWaveformBuffer(juce::AudioBuffer<float>* audioBuffer) { |
| 354 | if (audioBuffer == nullptr) return; |