-
-
Notifications
You must be signed in to change notification settings - Fork 330
Volume Control
Phil Schatzmann edited this page Oct 18, 2021
·
10 revisions
The BluetoothA2DPSink class provides the possibility to set the volume by calling the set_volume method. This is also used for adjusting the volume via AVRC.
We provide different implementations of the VolumeControl which have different properties:
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() {
}