How can you play two sources at the same time without stuttering? #255
-
So I'm using the Ai-Thinker ESP32 Audiokit as a Bluetooth receiver with a display and I want it to play sounds if I connect or disconnect from it I wanted to use the flash but it does not have enough memory for the audio files So I want to use an sd card with the files so I can play from it But when I do it, the Bluetooth audio stutters and it doesn't sound good Here is the code: BluetoothA2DPSink a2dp_sink; LiquidCrystal_PCF8574 lcd(0x27); //LCD - Volume Bar struct MENUITEM struct MENU /**************************** MENUITEM soundMenuItems[] = MENU soundMenu = MENUITEM displayMenuItems[] = MENU displayMenu = MENUITEM mainMenuItems[] = MENU mainMenu = MENU *currentMenu = &mainMenu; // currently selected menu switch (id) { void setup() { // setup output //setup lcd //setup encoder //setup eq // setup player // setup a2dp bluetooth //show something on LCD } void loop() { //LCD - Start //Equilizer Screen
}
} } } void ReceiveFromMega() { |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If the audio stutters you don't provide the audio data quick enough. I assume that you have added too much of a delay in the loop. Try to optimize your processing or use different tasks. |
Beta Was this translation helpful? Give feedback.
If the audio stutters you don't provide the audio data quick enough. I assume that you have added too much of a delay in the loop. Try to optimize your processing or use different tasks.