Skip to content

Проблема с a2dp_sink.end() #578

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

You must be logged in to vote

Can you provide me with a simple test case ?

The following test sketch works w/o any issues:

#include "AudioTools.h"
#include "BluetoothA2DPSink.h"

I2SStream out;
BluetoothA2DPSink a2dp_sink(out);

void setup() {
  Serial.begin(115200);
  while(!Serial) delay(100);
  
  a2dp_sink.end();
  Serial.println("ended 0");

  a2dp_sink.start("Test");  

  a2dp_sink.end();
  Serial.println("ended 1");
  a2dp_sink.end();
  Serial.println("ended 2");
}

void loop() {
  delay(1000); // do nothing
}

if gives

17:15:20.985 -> ended 0
17:15:21.435 -> ended 1
17:15:21.435 -> ended 2

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
3 replies
@KiShiVi
Comment options

@pschatzmann
Comment options

@KiShiVi
Comment options

Comment options

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

Answer selected by pschatzmann
Comment options

You must be logged in to vote
3 replies
@KiShiVi
Comment options

@pschatzmann
Comment options

@KiShiVi
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