Skip to content

Stuttering playback with some Android Devices (ESP32-A2DP with ESP32 DevKit and PCM5102) #686

Answered by pschatzmann
DerElch87 asked this question in Q&A
Discussion options

You must be logged in to vote

Strange, that sounds to be a similar problems like in IOS. I would have the following suggestions:

  • Add a delay to the loop: having no delay might starve the other tasks
  • Try to find out what the number of bytes are that are provided by your phone and adjust the sizes (e.g. cfg.buffer_size, A2DP_I2S_MAX_WRITE_SIZE) accordingly!
  • You can try to use the BluetoothA2DPSinkQueued instead of BluetoothA2DPSink and play around with the set_i2s_ringbuffer_size and set_i2s_ringbuffer_prefetch_percent
  • Try to adjust the A2DP_I2S_MAX_WRITE_SIZE in config.h
  • Try to adust the i2s buffer information

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by pschatzmann
Comment options

You must be logged in to vote
2 replies
@pschatzmann
Comment options

@DerElch87
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants