Skip to content

Commit

Permalink
added overriden getNumChannels to VUMeter
Browse files Browse the repository at this point in the history
  • Loading branch information
roymacdonald committed May 22, 2024
1 parent e305cdc commit 6dbc5f0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/SoundObjects/VUMeter.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ class VUMeter: public ofxSoundObject{
/// Force rebuilding the VUMeter.
/// in case that you've modified the colors using any of the above static functions you must call VUMeter::getForceRebuild() = true; for these changes to take effect.
static bool& getForceRebuild();
/// \brief get number of channes procccesed by this sound Object;
virtual size_t getNumChannels() override{ return drawData.rms.size();}
protected:

virtual void process(ofSoundBuffer &input, ofSoundBuffer &output) override;
Expand All @@ -184,7 +186,7 @@ class VUMeter: public ofxSoundObject{
DrawMode drawMode = VU_DRAW_VERTICAL;
StackMode stackMode = VU_STACK_HORIZONTAL;



ofRectangle drawRect;
std::vector <ofRectangle> vuRects;
Expand Down Expand Up @@ -212,6 +214,9 @@ class VUMeter: public ofxSoundObject{

}processData, drawData;




uint64_t lastPeakTime;
mutable ofMutex mutex;

Expand Down

0 comments on commit 6dbc5f0

Please sign in to comment.