Skip to content

Commit 658d3ea

Browse files
committed
Audio Player is aborting too early
1 parent 9014ad8 commit 658d3ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/AudioLibs/SDDirect.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ class SDDirect {
105105
}
106106
file = openNext(root);
107107
}
108-
if (!found){
108+
// stop processing and record maximum index
109+
if (!found && file_path_stack.size()==0){
109110
max_idx = actual_idx;
110111
}
111112
popPath();

0 commit comments

Comments
 (0)