Skip to content

October 2026

Latest

Choose a tag to compare

@pschatzmann pschatzmann released this 31 Oct 13:26
7da8b6e

New features

  • Codec support for the sink (decoding). New A2DPDecoder framework with A2DPDecoderSBC and A2DPDecoderAAC, added through BluetoothA2DPSink::add_decoder(). Each decoder you add registers its own stream endpoint, and mime() reports the codec in use. Needs ESP-IDF >= 5.5 and AudioTools (A2DP_MANAGED_DECODER_SUPPORTED).
  • Codec support for the source (encoding, draft). New A2DPEncoder framework with A2DPEncoderSBC and A2DPEncoderAAC, added through BluetoothA2DPSource::add_encoder(). Needs ESP-IDF >= 5.5 and AudioTools (A2DP_MANAGED_ENCODER_SUPPORTED).
  • New examples: bt_music_receiver_codec and bt_music_sender_codec.
  • Pin code request callback for the sink (#807).

Platform / build

  • ESP-IDF v6.0.1 and v6.1.0 support; compile fixes for IDF < 5.2.1 (incl. ESP_A2D_AUDIO_STATE_SUSPEND for IDF < 5.2.0).
  • Fixed BT controller enable failure (ESP_ERR_INVALID_ARG) on IDF >= 6.1.
  • CMake: cleaned up CMakeLists.txt, added codec components. The component dependencies were renamed: arduino-libhelix -> codec-helix, arduino-libsbc -> codec-sbc.
  • Fixed the platform check.

Bug fixes

  • Fixed a buffer overflow in set_pin_code() with pins of 16 or more characters (#802).
  • Fixed the source hanging on disconnect.
  • AAC: no audio after pause, and I2S access conflicts with AAC.
  • Writes silence when the output becomes inactive.
  • Uses delay_ms() instead of delay() for ESP-IDF compatibility; std::min() instead of min().
  • Fixed a missing-field-initializer warning for esp_a2d_mcc_t.

Behaviour / API changes to note

  • is_output_active_by_state now defaults to false: the output is no longer switched off on A2DP suspend.
  • writeSilence() renamed to write_silence().
  • Bluetooth name lists use std::vector<const char*> instead of std::vector<char*>.

Documentation

  • README shortened and reworked (title, IDF component badge, link fixes).
  • Doxygen regenerated; codecs moved to their own group.