Skip to content

Commit

Permalink
soundSim - volumeSmth
Browse files Browse the repository at this point in the history
  • Loading branch information
netmindz committed Mar 4, 2024
1 parent f6ae180 commit b2aadf3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/User/UserModWLEDAudio.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class UserModWLEDAudio:public SysModule {

WLEDSync sync;
byte fftResults[NUM_GEQ_CHANNELS]= {0};
float volumeSmth;

UserModWLEDAudio() :SysModule("WLED Audio Sync Receiver") {
};
Expand Down Expand Up @@ -67,6 +68,7 @@ class UserModWLEDAudio:public SysModule {
fftResults[b] = val;
if(debug) USER_PRINTF("%u ", val);
}
volumeSmth = sync.volumeSmth;
if(debug) USER_PRINTF("\n");
}
else if((lastData == 0) || isTimeout()) { // Could also check for non-silent
Expand Down Expand Up @@ -106,7 +108,6 @@ class UserModWLEDAudio:public SysModule {
static uint8_t maxVol;
static uint8_t binNum;

static float volumeSmth;
static uint16_t volumeRaw;
static float my_magnitude;

Expand Down

0 comments on commit b2aadf3

Please sign in to comment.