Skip to content

Commit d767a1a

Browse files
committed
AudioSourceSdFat
1 parent 1bbc4e7 commit d767a1a

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/AudioTools/AudioPlayer.h

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -146,16 +146,7 @@ namespace audio_tools {
146146

147147
virtual Stream* nextStream(int offset) {
148148
LOGD(LOG_METHOD);
149-
// move to next file
150-
pos += offset;
151-
if (pos<0){
152-
pos = 0;
153-
}
154-
file.close();
155-
file = getFile(start_path, pos);
156-
file.getName(file_name, MAX_FILE_LEN);
157-
LOGI("-> nextStream: '%s'", file_name);
158-
return file ? &file : nullptr;
149+
return selectStream(pos+offset);
159150
}
160151

161152
virtual Stream* selectStream(int index) {

0 commit comments

Comments
 (0)