diff --git a/port/posix-h4/Makefile b/port/posix-h4/Makefile index f779f4321..20908ffb6 100644 --- a/port/posix-h4/Makefile +++ b/port/posix-h4/Makefile @@ -11,6 +11,8 @@ CORE += \ btstack_chipset_tc3566x.c \ btstack_link_key_db_tlv.c \ btstack_run_loop_posix.c \ + btstack_audio.c \ + btstack_audio_portaudio.c \ btstack_tlv_posix.c \ btstack_uart_block_posix.c \ hci_transport_h4.c \ @@ -22,7 +24,6 @@ CORE += \ 0000000_META_hci_patches_v7.c \ # bluetooth_init_cc2564_2.14.c \ # bluetooth_init_cc2564C_1.4.c \ - # TI-WL183x requires TIInit_11.8.32.c # examples diff --git a/port/posix-h4/main.c b/port/posix-h4/main.c index 2b09bf1e6..49b16adfc 100644 --- a/port/posix-h4/main.c +++ b/port/posix-h4/main.c @@ -51,6 +51,7 @@ #include "btstack_config.h" +#include "btstack_audio.h" #include "btstack_debug.h" #include "btstack_event.h" #include "ble/le_device_db_tlv.h" @@ -261,6 +262,11 @@ int main(int argc, const char * argv[]){ const hci_transport_t * transport = hci_transport_h4_instance(uart_driver); hci_init(transport, (void*) &config); +#ifdef HAVE_PORTAUDIO + btstack_audio_sink_set_instance(btstack_audio_portaudio_sink_get_instance()); + btstack_audio_source_set_instance(btstack_audio_portaudio_source_get_instance()); +#endif + // set BD_ADDR for CSR without Flash/unique address // bd_addr_t own_address = { 0x11, 0x22, 0x33, 0x44, 0x55, 0x66}; // btstack_chipset_csr_set_bd_addr(own_address);