Skip to content

Commit 63a0166

Browse files
committed
sdfat
1 parent 463f822 commit 63a0166

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/examples-custom-boards/esp32-s3-ai-smart-speaker/player-sdfat-audiokit/player-sdfat-audiokit.ino

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
* This makes sure that the SD is only active when it is actually used, so that
99
* we can extend the battery life!
1010
*
11+
* Please note that this examples also works w/o the custom functions since the
12+
* AudioKit driver already configures the EXIO4 pin for SD use.
13+
*
1114
* @author Phil Schatzmann
1215
* @copyright GPLv3
1316
*/
@@ -20,7 +23,7 @@
2023

2124
const char* startFilePath = "/";
2225
const char* ext = "mp3";
23-
AudioSourceSDFAT source(startFilePath, ext);
26+
AudioSourceSDFAT source(startFilePath, ext, -1);
2427
AudioBoardStream kit(ESP32S3AISmartSpeaker);
2528
MP3DecoderHelix decoder; // or change to MP3DecoderMAD
2629
AudioPlayer player(source, kit, decoder);

0 commit comments

Comments
 (0)