Changeset View
Changeset View
Standalone View
Standalone View
src/scopes/audioscopes/spectrogram.cpp
Context not available. | |||||
329 | FFTTools::WindowType windowType = (FFTTools::WindowType)ui->windowFunction->itemData(ui->windowFunction->currentIndex()).toInt(); | 329 | FFTTools::WindowType windowType = (FFTTools::WindowType)ui->windowFunction->itemData(ui->windowFunction->currentIndex()).toInt(); | ||
---|---|---|---|---|---|
330 | m_fftTools.fftNormalized(audioFrame, 0, num_channels, freqSpectrum, windowType, fftWindow, 0); | 330 | m_fftTools.fftNormalized(audioFrame, 0, num_channels, freqSpectrum, windowType, fftWindow, 0); | ||
331 | 331 | | |||
332 | // This methid might be called also when a simple refresh is required. | 332 | // This method might be called also when a simple refresh is required. | ||
333 | // In this case there is no data to append to the history. Only append new data. | 333 | // In this case there is no data to append to the history. Only append new data. | ||
334 | QVector<float> spectrumVector(fftWindow / 2); | 334 | QVector<float> spectrumVector(fftWindow / 2); | ||
335 | memcpy(spectrumVector.data(), &freqSpectrum[0], fftWindow / 2 * sizeof(float)); | 335 | memcpy(spectrumVector.data(), &freqSpectrum[0], fftWindow / 2 * sizeof(float)); | ||
Context not available. |