Dropouts on esp32-player-sd-a2dp for Arduino player #852
-
Hi, thank you x 100 for your great libraries. I created a fun air guitar project. It's an ESP32 SD A2DP player. It has a NAND SD chip and accelerometer to sense what the user is doing... move the board and it plays the music on a Bluetooth speaker. The code is GPL v3 and at https://github.com/frankcohen/ReflectionsOS/tree/main/Experiments/AirGuitar A video showing it playing is at https://youtu.be/J06CSqpnano I pegged the audio to play continuously while testing it. I found a lot of drop-outs when playing the music. I tested the SD memory (it runs over SPI) and I don't see lags or latency. A snippet of my code is here: BluetoothA2DPSource a2dp_source;
} Do you notice something I'm doing wrong? -Frank |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
You don't really provide enough information. In general I recommend not to use the stream based implementation, but the one using the callback directly that you can find in the basic examples. |
Beta Was this translation helpful? Give feedback.
-
Thank you! I’ll look at the basic examples for a non-streaming direct callback. I was using these examples:
https://github.com/pschatzmann/arduino-audio-tools/blob/main/examples/examples-basic-api/base-player-a2dp/base-player-a2dp.ino
https://github.com/pschatzmann/arduino-audio-tools/blob/main/examples/examples-player/player-sdfat-a2dp/player-sdfat-a2dp.ino
https://github.com/pschatzmann/arduino-audio-tools/blob/main/examples/examples-player/player-sd-i2s/player-sd-i2s.ino
I want to avoid SDFat. On the ESP32 and with the NAND SD chip I find SDfat to be overkill.
Is there a specific example I should use? I didn’t find a esp32-player-sd-a2dp one. Glad to contribute one.
…-Frank
On May 18, 2023, at 1:21 AM, Phil Schatzmann ***@***.***> wrote:
You don't really provide enough information. In general I recommend not to use the stream based implementation, but the one using the callback directly that you can find in the basic examples.
—
Reply to this email directly, view it on GitHub <#852 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABUEWMJDUASLCFPRVKSRNF3XGXLXLANCNFSM6AAAAAAYF6UA5U>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
If you want to use the player I suggest that you read the corresponding Wiki: https://github.com/pschatzmann/arduino-audio-tools/wiki/The-Audio-Player-Class |
Beta Was this translation helpful? Give feedback.
You don't really provide enough information. In general I recommend not to use the stream based implementation, but the one using the callback directly that you can find in the basic examples.