File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
examples/examples-custom-boards/esp32-s3-ai-smart-speaker/player-sdfat-audiokit Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 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 */
2023
2124const char * startFilePath = " /" ;
2225const char * ext = " mp3" ;
23- AudioSourceSDFAT source (startFilePath, ext);
26+ AudioSourceSDFAT source (startFilePath, ext, - 1 );
2427AudioBoardStream kit (ESP32S3AISmartSpeaker);
2528MP3DecoderHelix decoder; // or change to MP3DecoderMAD
2629AudioPlayer player (source, kit, decoder);
You can’t perform that action at this time.
0 commit comments