Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Leander Schulten
Lichtsteuerung
Commits
a972e7ab
Commit
a972e7ab
authored
Oct 22, 2018
by
Leander Schulten
Browse files
Only update Graphs, when Audio is capturing
parent
6d0a921b
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.cpp
View file @
a972e7ab
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment