Skip to content

Volume Control

Phil Schatzmann edited this page Oct 18, 2021 · 10 revisions

The BluetoothA2DPSink provides the possibility to set the volume by calling the setVolume method. This is also used for adjusting the volume via AVRC.

We provide different implementations of the VolumeControl which have different properties:

curve

You can select an alternative implementation the following way:

#include "BluetoothA2DPSin.h"

BluetoothA2DPSink32 a2dp_sink;
SimpleExponentialVolumeControl vc;

void setup() {
  a2dp_sink.set_volume_control(&vc);  
  a2dp_sink.start("BTExpVolume");  
}

void loop() {
}
Clone this wiki locally