Skip to content

No output with example basic-a2dp-spdif.ino #1493

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

You must be logged in to vote

With the latest version of A2DP, it is possible to define the output.
Can you try the following

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

AudioInfo info(44100, 2, 16);
SPDIFOutput spdif;
BluetoothA2DPSink a2dp_sink(spdif);

void setup() {
  Serial.begin(115200);
  AudioLogger::instance().begin(Serial, AudioLogger::Warning);

  // setup output
  auto cfg = spdif.defaultConfig();
  cfg.copyFrom(info);
  cfg.buffer_size = 384;
  cfg.buffer_count = 30;
  cfg.pin_data = 23;
  spdif.begin(cfg);

  // Start Bluetooth Audio Receiver
  a2dp_sink.start("a2dp-spdif");

}

void loop() {
  delay(100);
}

Replies: 7 comments 15 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
9 replies
@muhammadazmi26
Comment options

@pschatzmann
Comment options

@muhammadazmi26
Comment options

@pschatzmann
Comment options

@muhammadazmi26
Comment options

Answer selected by pschatzmann
Comment options

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

@pschatzmann
Comment options

@muhammadazmi26
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

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

@pschatzmann
Comment options

@muhammadazmi26
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants