Skip to content

Commit f8909ba

Browse files
committed
BluetoothA2DPSource examples add deleay to loop
1 parent 1ca9394 commit f8909ba

File tree

5 files changed

+6
-0
lines changed

5 files changed

+6
-0
lines changed

examples/examples-audiokit/basic-audiokit-a2dp/basic-audiokit-a2dp.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,5 @@ void setup(void) {
4040

4141
// Arduino loop - repeated processing
4242
void loop() {
43+
delay(1000);
4344
}

examples/examples-audiokit/streams-synth-a2dp/streams-synth-a2dp.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ void setup() {
3939
auto cfg = in.defaultConfig();
4040
cfg.channels = channels;
4141
cfg.sample_rate = 44100;
42+
cfg.buffer_size = 512;
43+
cfg.buffer_count = 10;
4244
in.begin(cfg);
4345

4446
a2dp_source.start("LEXON MINO L", get_sound_data);

examples/examples-basic-api/base-adc-a2dp/base-adc-a2dp.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@ void setup(void) {
4343

4444
// Arduino loop - repeated processing
4545
void loop() {
46+
delay(1000);
4647
}

examples/examples-basic-api/base-generator-a2dp/base-generator-a2dp.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,5 @@ void setup(void) {
4646

4747
// Arduino loop - repeated processing
4848
void loop() {
49+
delay(1000);
4950
}

examples/examples-basic-api/base-i2s-a2dp/base-i2s-a2dp.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,5 @@ void setup(void) {
5555

5656
// Arduino loop - repeated processing
5757
void loop() {
58+
delay(1000);
5859
}

0 commit comments

Comments
 (0)