From 83ff745b43ebda7b33c52ac1a80a1408c59bfa70 Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Sun, 17 May 2026 09:44:33 -0400 Subject: for the pulse peak streams do nothing if windows aren't open to reduce cpu --- src/model/pulsemodel.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/model/pulsemodel.h') 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 m_sinks; TQPtrList m_sources; -- cgit v1.2.3