Skip to content

Commit 5612a63

Browse files
committed
streams-generator-a2dp.ino
1 parent 8248001 commit 5612a63

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

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

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,26 @@ StreamCopy copier(out, in); // copy in to out
2626
// Arduino Setup
2727
void setup(void) {
2828
Serial.begin(115200);
29+
AudioLogger::instance().begin(Serial, AudioLogger::Warning);
2930

30-
// We send the test signal via A2DP - so we conect to the MyMusic Bluetooth Speaker
31-
out.setVolume(10);
32-
out.begin(TX_MODE, "MyMusic");
33-
Serial.println("A2DP is connected now...");
31+
// set the frequency
32+
sineWave.setFrequency(N_B4);
3433

3534
// Setup sine wave
3635
auto cfg = in.defaultConfig();
3736
cfg.channels = channels;
3837
cfg.sample_rate = sample_rate;
3938
in.setNotifyAudioChange(out);
4039
in.begin(cfg);
41-
42-
// set the frequency
43-
sineWave.setFrequency(N_B4);
40+
41+
// We send the test signal via A2DP - so we conect to the MyMusic Bluetooth Speaker
42+
out.setVolume(10);
43+
out.begin(TX_MODE, "LEXON MINO L");
44+
Serial.println("A2DP is connected now...");
45+
4446
}
4547

4648
// Arduino loop
4749
void loop() {
48-
if (out)
49-
copier.copy();
50+
copier.copy();
5051
}

0 commit comments

Comments
 (0)