Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some audio fixes #463

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pico_w/bt/btstack_audio_pico.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ static int btstack_audio_pico_sink_init(

playback_callback = playback;

btstack_audio_pico_audio_buffer_pool = init_audio(samplerate, channels);
if (!btstack_audio_pico_audio_buffer_pool) {
btstack_audio_pico_audio_buffer_pool = init_audio(samplerate, channels);
}

return 0;
}
Expand Down
7 changes: 6 additions & 1 deletion pico_w/bt/hfp_hf_demo/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
picow_bt_example(hfp_hf_demo pico_btstack_sco_demo_util pico_btstack_sbc_encoder)
add_library(hfp_hf_demo_pins INTERFACE)
target_compile_definitions(hfp_hf_demo_pins INTERFACE
PICO_AUDIO_I2S_DATA_PIN=9
PICO_AUDIO_I2S_CLOCK_PIN_BASE=10
)
picow_bt_example(hfp_hf_demo pico_btstack_sco_demo_util pico_btstack_sbc_encoder hfp_hf_demo_pins)
7 changes: 6 additions & 1 deletion pico_w/bt/mod_player/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
picow_bt_example(mod_player pico_btstack_hxcmod_player)
add_library(mod_player_pins INTERFACE)
target_compile_definitions(mod_player_pins INTERFACE
PICO_AUDIO_I2S_DATA_PIN=9
PICO_AUDIO_I2S_CLOCK_PIN_BASE=10
)
picow_bt_example(mod_player pico_btstack_hxcmod_player mod_player_pins)
7 changes: 6 additions & 1 deletion pico_w/bt/sine_player/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
picow_bt_example(sine_player)
add_library(sine_player_pins INTERFACE)
target_compile_definitions(sine_player_pins INTERFACE
PICO_AUDIO_I2S_DATA_PIN=9
PICO_AUDIO_I2S_CLOCK_PIN_BASE=10
)
picow_bt_example(sine_player sine_player_pins)
Loading