src/Audio.cpp
// This is called from the OpenGL Thread
This is called from the OpenGL Thread
This is called from the OpenGL Thread
void Audio::levels(double *audioHi, double *audioMid, double *audioLow, double *audioLevel) {
    QMutexLocker locker(&m_audioLock);
    *audioHi = audioThreadHi;
    *audioMid = audioThreadMid;
    *audioLow = audioThreadLow;
    *audioLevel = audioThreadLevel;
}
void Audio :: levels ( double * audioHi , double * audioMid , double * audioLow , double * audioLevel ) { QMutexLocker locker ( & m_audioLock ) ; * audioHi = audioThreadHi ; * audioMid = audioThreadMid ; * audioLow = audioThreadLow ; * audioLevel = audioThreadLevel ; }
This is called from the OpenGL Thread
This is called from the OpenGL Thread
/*
    glBindTexture(GL_TEXTURE_1D, tex_spectrum);
    glTexImage1D(GL_TEXTURE_1D, 0, GL_R32F, config.audio.spectrum_bins, 0, GL_RED, GL_FLOAT, spectrum_gl);
    glBindTexture(GL_TEXTURE_1D, tex_waveform);
    glTexImage1D(GL_TEXTURE_1D, 0, GL_RGBA32F, config.audio.waveform_length, 0, GL_RGBA, GL_FLOAT, &waveform_gl[waveform_ptr * 4]);
    glBindTexture(GL_TEXTURE_1D, tex_waveform_beats);
    glTexImage1D(GL_TEXTURE_1D, 0, GL_RGBA32F, config.audio.waveform_length, 0, GL_RGBA, GL_FLOAT, &waveform_beats_gl[waveform_ptr * 4]);
    glBindTexture(GL_TEXTURE_1D, 0);
    */