summaryrefslogtreecommitdiff
path: root/src/model/pulsemodel.h
diff options
context:
space:
mode:
authorCalvin Morrison <calvin@pobox.com>2026-05-17 09:44:33 -0400
committerCalvin Morrison <calvin@pobox.com>2026-05-17 09:44:33 -0400
commit83ff745b43ebda7b33c52ac1a80a1408c59bfa70 (patch)
tree3383f8d54d0523b3ed812957a56e70cb59a01b08 /src/model/pulsemodel.h
parent5ccdfbc97811847611ee366848aa4b4b767bd656 (diff)
for the pulse peak streams do nothing if windows aren't open to reduce cpu
Diffstat (limited to 'src/model/pulsemodel.h')
-rw-r--r--src/model/pulsemodel.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/model/pulsemodel.h b/src/model/pulsemodel.h
index b7200e3..2adfee7 100644
--- a/src/model/pulsemodel.h
+++ b/src/model/pulsemodel.h
@@ -85,6 +85,10 @@ public:
void setSinkPort( uint32_t sinkPaIndex, const TQString &portName );
void setSourcePort( uint32_t sourcePaIndex, const TQString &portName );
+ void addLevelViewer();
+ void removeLevelViewer();
+ bool levelsActive() const { return m_levelViewers > 0; }
+
protected:
void customEvent( TQCustomEvent *e );
@@ -124,6 +128,7 @@ private:
pa_threaded_mainloop *m_mainloop;
pa_context *m_context;
+ int m_levelViewers;
TQPtrList<PulseDevice> m_sinks;
TQPtrList<PulseDevice> m_sources;