Skip to content

Header file issue and IntegerDivideByZero Exception #1568

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

You must be logged in to vote

Where do you have the example from that does the import of A2DP first ?

The crash comes from the fact that the sample rate is not defined: it must be 44100!
The effective sample rate is only available after you have connected, so you need to either

  • hardcode it to 44100 in your sketch like you did for the channels or bits_per_sample or
  • wait for the the connection status after calling start() with while(!a2dp_sink.is_connected()) delay(10);
  • use the A2DP library with the latest commit

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@pschatzmann
Comment options

Comment options

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

You must be logged in to vote
1 reply
@pschatzmann
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