We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ed6381 commit bb718dcCopy full SHA for bb718dc
src/AudioTools/CoreAudio/AudioFilter/Equalizer.h
@@ -161,6 +161,10 @@ class Equalizer3Bands : public ModifyingStream {
161
} *state = nullptr;
162
163
void filterSamples(const uint8_t *data, size_t len) {
164
+ if (state == nullptr){
165
+ LOGE("You need to call begin() before using the equalizer");
166
+ return;
167
+ }
168
switch (p_cfg->bits_per_sample) {
169
case 16: {
170
int16_t *p_dataT = (int16_t *)data;
0 commit comments