posix-h4: support for portaudio

This commit is contained in:
Matthias Ringwald 2021-02-18 11:18:16 +01:00
parent 7d94e05f64
commit 71e722a76b
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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);