HELP!- Unable to Play audio files from sd card from in build example - "player-sd-audiokit" #1631
-
HI , i have been stuck on playing sd card example code, i am using esp32 dev module , along with uda1334a and sd card module and the following example code i have tried both the uda1334a and sd card module individully and both work fine , but when i use the example it crashes with the follow logs- [I] AudioBoardStream.h : 60 - void audio_tools::AudioBoardStream::addAction(int, void ()(bool, int, void), void*) and here is the code that i changed, (i have only changed the music directory, rest is the same) #include "AudioTools.h" const char startFilePath="/"; void next(bool, int, void*) { void previous(bool, int, void*) { void startStop(bool, int, void*) { void setup() { // setup output // setup additional buttons // setup player // select file with setPath() or setIndex() void loop() { } |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 11 replies
-
Don't use the AudioBoardStream with an esp32 dev module ! If you want to use the AudioActions, read the corresponding Wiki about interactive Audio! In the AudioSourceSD indicate the CS pin that you have connected with your SD! |
Beta Was this translation helpful? Give feedback.
-
i am sry to disturb, i am a rookie , where exactly am i supposed to change the pin no |
Beta Was this translation helpful? Give feedback.
-
Google the topic SPI, but on the ESP32 you can basically just use any pin: but you need to configure them, like you have done above. PIN_AUDIO_KIT_SD_CARD_CS is 13! |
Beta Was this translation helpful? Give feedback.
-
same problem again what do i do ?? |
Beta Was this translation helpful? Give feedback.
Don't use the AudioBoardStream with an esp32 dev module !
If you want to use the AudioActions, read the corresponding Wiki about interactive Audio!
In the AudioSourceSD indicate the CS pin that you have connected with your SD!