A2DP Source

Browse source code on GitHub

Overview

This sample demonstrates the A2DP (Advanced Audio Distribution Profile) source functionality using Zephyr’s Bluetooth Classic APIs. The application acts as an A2DP source device, it discovers and connects to a A2DP sink device such as Bluetooth speaker and headphone, and streams audio data to it automatically.

Requirements

  • Running on the host with Bluetooth BR/EDR (Classic) support, or

  • A board with Bluetooth BR/EDR (Classic) support

Building and Running

  1. Build and flash the sample to the board.

  2. The device will discover a2dp sink devices nearby.

  3. Connect and stream audio automatically.

This sample can be found under samples/bluetooth/classic/a2dp_source in the Zephyr tree.

See Bluetooth samples for details.

See also

Advanced Audio Distribution Profile (A2DP)
Bluetooth APIs