Skip to content

Commit a46a7f8

Browse files
authored
Fix size() function of File based AudioSource (#1852)
1 parent 6b8749f commit a46a7f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AudioTools/AudioLibs/SDDirect.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class SDDirect {
5454
listDir(start_dir);
5555
max_idx = actual_idx;
5656
}
57-
return max_idx;
57+
return max_idx + 1;
5858
}
5959

6060
protected:

0 commit comments

Comments
 (0)