switch from qtMedia to rtAudio

This commit is contained in:
2025-12-22 20:47:39 -06:00
parent 783330990e
commit 73e77b6dc4
7 changed files with 29 additions and 76 deletions

View File

@@ -1,4 +1,6 @@
/*
#include "Synth.h"
#include <QMediaDevices>
@@ -28,13 +30,12 @@ Synth::~Synth() {
void Synth::start() {
/*
// std::cout << "Synth::start()" << std::endl;
if (audioSink_->state() == QAudio::ActiveState)
return;
// if (audioSink_->state() == QAudio::ActiveState)
// return;
audioDevice_ = audioSink_->start();
*/
// audioDevice_ = audioSink_->start();
}
void Synth::stop() {
@@ -109,4 +110,6 @@ void Synth::applyConfig(const AudioConfig& config) {
audioSink_ = new QAudioSink(device, format_, this);
audioSink_->setBufferSize(config.bufferSize);
}
}
*/