Help with VolumePrint #677
-
Hello #include "AudioTools.h" BluetoothA2DPSink a2dp_sink; void writeDataStream(const uint8_t *data, uint32_t length) { void setup() { // register A2DP callback // Start Bluetooth Audio Receiver } void loop() { Serial.println(vol_info.volume()); } |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 6 replies
-
I just committed a correction. It seems that this bug has been introduced with the introduction to provide the volume per channel. If you check the volume e.g. on channel 0 with volume(0) it should work with your installed version. |
Beta Was this translation helpful? Give feedback.
-
Thanks for replying so quickly Phil. If I try Serial.println(vol_info.volume(0)); it just stays at zero, also if I try channel 1 |
Beta Was this translation helpful? Give feedback.
-
The critical information that you need to provide is the number of channels. But better try to install the new version and double check if it is working now without begin... |
Beta Was this translation helpful? Give feedback.
-
Further to this, when I try to implement VolumePrint in a sketch that also uses VolumeStream (so the overall level can be controlled with a potentiometer) I lose the VolumePrint info. Am I correct in thinking I need to split the stream using MultiOutput? BluetoothA2DPSink a2dp_sink; Then in setup out.add(out1); |
Beta Was this translation helpful? Give feedback.
-
No, you just need to put it into the audio chain, if it is before the VolumeStream you get the input volume if it is after, you get the decreased volume .. |
Beta Was this translation helpful? Give feedback.
-
I used the stream method you suggested and it works like a dream, thank you. |
Beta Was this translation helpful? Give feedback.
The critical information that you need to provide is the number of channels. But better try to install the new version and double check if it is working now without begin...