Commit a972e7ab authored by Leander Schulten's avatar Leander Schulten
Browse files

Only update Graphs, when Audio is capturing

parent 6d0a921b
......@@ -213,12 +213,14 @@ int main(int argc, char *argv[])
QTimer timer;
timer.setInterval(15);
QObject::connect(&timer,&QTimer::timeout,[&](){
if(Graph::getLast())
Graph::getLast()->update();
if(Oscillogram::getLast())
Oscillogram::getLast()->update();
if(Colorplot::getLast())
Colorplot::getLast()->update();
if(Audio::AudioCaptureManager::get().isCapturing()){
if(Graph::getLast())
Graph::getLast()->update();
if(Oscillogram::getLast())
Oscillogram::getLast()->update();
if(Colorplot::getLast())
Colorplot::getLast()->update();
}
});
timer.start();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment