Skip to content

need help creating bluetooth speacker #713

Discussion options

You must be logged in to vote

There are several problems with your logic:

  • playing a file might change the i2s audio info: so store it before you play the file and restore it back to the original state after playing.
  • You can use the copyAll() method to play the whole file
  • The BluetoothA2DPSink is writing the audio data to i2s in a task, so you have potentially 2 processes that write data to i2s which will mess up the output badly! I suggest you use the A2DPStream class to prevent this from happening.
  • You will need to analyze where the pop sound is coming from: it might be the stopping and starting of the AnalogAudioStream. Using the A2DPStream might help here as well...

Replies: 1 comment 1 reply

Comment options

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

Answer selected by pschatzmann
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