Skip to content

Commit c5cccd2

Browse files
authored
Merge pull request #59 from podaen/main
USE_STK on audioeffects.h
2 parents a6f8ec5 + 7bd43a5 commit c5cccd2

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
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 & 2 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

0 commit comments

Comments
 (0)