TB2026-YDS Firmware
Loading...
Searching...
No Matches
sink_bluetooth.h File Reference

Bluetooth A2DP audio sink: stream PCM to a connected speaker. More...

#include "audio_sink.h"

Go to the source code of this file.

Functions

const audio_sink_tsink_bluetooth_get (void)
 Get the Bluetooth A2DP sink (PCM -> ring buffer -> A2DP source -> speaker).

Detailed Description

Bluetooth A2DP audio sink: stream PCM to a connected speaker.

Adapts the push-style Audio sink interface interface to the A2DP source, which pulls PCM from the Bluetooth stack's own task. write() feeds an internal ring buffer; a pull callback drains it and the stack encodes SBC and paces the link. Requires the Bluetooth service service to have an established connection.

Note
Développé avec l'assistance de Claude Opus 4.8 (Anthropic), sous la direction de Y. Dos Santos : spécification, revue et validation sur cible par l'auteur.

Function Documentation

◆ sink_bluetooth_get()

const audio_sink_t * sink_bluetooth_get ( void )

Get the Bluetooth A2DP sink (PCM -> ring buffer -> A2DP source -> speaker).

Returns
Pointer to the static sink vtable (never NULL). start() requires a live Bluetooth connection (see bluetooth_connect()).