diff --git a/frontend/audio.cpp b/frontend/audio.cpp index ede0e20..8d48224 100644 --- a/frontend/audio.cpp +++ b/frontend/audio.cpp @@ -43,11 +43,15 @@ void MainWindow::audioStateChanged(QAudio::State state) { #endif void MainWindow::onAudioSample(int16_t left, int16_t right) { +#ifndef NO_SOUND m_audioStream->write(reinterpret_cast(left), sizeof(int16_t)); m_audioStream->write(reinterpret_cast(right), sizeof(int16_t)); +#endif } void MainWindow::onAudioSampleBatch(const int16_t *data, size_t frames) { +#ifndef NO_SOUND // each "frame" is two int16_t's (one for each channel of a stereo track) m_audioStream->write(reinterpret_cast(data), frames * sizeof(int16_t) * 2); +#endif } diff --git a/reference_frontend.pro b/reference_frontend.pro index d3d0d5f..d1ce829 100644 --- a/reference_frontend.pro +++ b/reference_frontend.pro @@ -16,7 +16,11 @@ TEMPLATE = app -QT += gui widgets +QT += gui widgets opengl + +greaterThan(QT_MAJOR_VERSION, 5) { + QT += openglwidgets +} TARGET = reference_frontend