File tree Expand file tree Collapse file tree 4 files changed +21
-5
lines changed Expand file tree Collapse file tree 4 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -153,8 +153,9 @@ static int btstack_audio_pico_sink_init(
153
153
154
154
playback_callback = playback ;
155
155
156
- btstack_audio_pico_audio_buffer_pool = init_audio (samplerate , channels );
157
-
156
+ if (!btstack_audio_pico_audio_buffer_pool ) {
157
+ btstack_audio_pico_audio_buffer_pool = init_audio (samplerate , channels );
158
+ }
158
159
return 0 ;
159
160
}
160
161
Original file line number Diff line number Diff line change 1
- picow_bt_example (hfp_hf_demo pico_btstack_sco_demo_util pico_btstack_sbc_encoder )
1
+ add_library (hfp_hf_demo_pins INTERFACE )
2
+ target_compile_definitions (hfp_hf_demo_pins INTERFACE
3
+ PICO_AUDIO_I2S_DATA_PIN=9
4
+ PICO_AUDIO_I2S_CLOCK_PIN_BASE=10
5
+ )
6
+ picow_bt_example (hfp_hf_demo pico_btstack_sco_demo_util pico_btstack_sbc_encoder hfp_hf_demo_pins )
Original file line number Diff line number Diff line change 1
- picow_bt_example (mod_player pico_btstack_hxcmod_player )
1
+ add_library (mod_player_pins INTERFACE )
2
+ target_compile_definitions (mod_player_pins INTERFACE
3
+ PICO_AUDIO_I2S_DATA_PIN=9
4
+ PICO_AUDIO_I2S_CLOCK_PIN_BASE=10
5
+ )
6
+ picow_bt_example (mod_player pico_btstack_hxcmod_player mod_player_pins )
Original file line number Diff line number Diff line change 1
- picow_bt_example (sine_player )
1
+ add_library (sine_player_pins INTERFACE )
2
+ target_compile_definitions (sine_player_pins INTERFACE
3
+ PICO_AUDIO_I2S_DATA_PIN=9
4
+ PICO_AUDIO_I2S_CLOCK_PIN_BASE=10
5
+ )
6
+ picow_bt_example (sine_player sine_player_pins )
You can’t perform that action at this time.
0 commit comments