Skip to content

Commit 7ca9cc5

Browse files
committed
A2DP examples valume
1 parent 03a8d27 commit 7ca9cc5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

examples/examples-stream/streams-generator-a2dp/streams-generator-a2dp.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void setup(void) {
3939
in.begin(cfg);
4040

4141
// We send the test signal via A2DP - so we conect to the MyMusic Bluetooth Speaker
42-
out.setVolume(10);
42+
out.setVolume(0.3);
4343
out.begin(TX_MODE, "LEXON MINO L");
4444
//out.auto_reconnect = true; // if this is use we just quickly connect to the last device ignoring cfg.name
4545
Serial.println("A2DP is connected now...");

src/AudioLibs/AudioA2DP.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ class A2DPStream : public AudioStream, public AudioBaseInfoSource {
264264
return a2dp_buffer==nullptr ? 0 : a2dp_buffer->availableForWrite();
265265
}
266266

267+
// Define the volme (values between 0 and 1)
267268
virtual void setVolume(float volume){
268269
this->volume = volume;
269270
if (a2dp!=nullptr) a2dp->set_volume(volume * 100);

0 commit comments

Comments
 (0)