Skip to content

Commit 3bb2e88

Browse files
committed
2 parents 7d6c3b4 + c5cccd2 commit 3bb2e88

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

src/AudioEffects/AudioEffects.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
#include "AudioTools/Vector.h"
55
#include "AudioEffects/AudioEffect.h"
66
#include "AudioEffects/AudioEffectsSuite.h"
7+
#ifdef USE_STK
78
#include "AudioEffects/STKEffects.h"
9+
#endif
810

911
namespace audio_tools {
1012

src/AudioTools/AudioPlayer.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ namespace audio_tools {
290290
int pos = inPath.lastIndexOf("/") + 1;
291291
strPath.substring(path, 0, pos);
292292
strfileName.substring(path, pos, inPath.length());
293-
if (!dir.open(strPath.c_str())) {//("/21/" , "001.mp3")
293+
if (!dir.open(strPath.c_str())) {
294294
LOGE("directory: %s not open", path);
295295
}
296296
else
@@ -305,7 +305,7 @@ namespace audio_tools {
305305
}
306306
else
307307
{
308-
LOGD("-> getFileByPath: '%s': %d", path, strfileName.c_str());
308+
LOGD("-> getFileByPath: %s , %s", strPath.c_str(), strfileName.c_str());
309309
}
310310
}
311311
}
@@ -613,6 +613,11 @@ namespace audio_tools {
613613
result = false;
614614
}
615615
}
616+
else {
617+
LOGW("-> begin: no stream selected");
618+
active = isActive;
619+
result = false;
620+
}
616621
return result;
617622
}
618623

@@ -731,10 +736,6 @@ namespace audio_tools {
731736
// reset timeout
732737
timeout = millis() + p_source->timeoutAutoNext();
733738
}
734-
else
735-
{
736-
active = false;
737-
}
738739
// move to next stream after timeout
739740
if (p_input_stream == nullptr || millis() > timeout) {
740741
if (autonext) {

0 commit comments

Comments
 (0)