pts/avdtp_source: fix name of ldac define

This commit is contained in:
Bjoern Hartmann 2021-02-23 18:29:55 +01:00 committed by Matthias Ringwald
parent 4760ed1a94
commit a92a979e8e
2 changed files with 6 additions and 6 deletions

View File

@ -31,9 +31,9 @@ endif()
pkg_check_modules(LDAC_ENCODER ldacBT-enc)
if (LDAC_ENCODER_FOUND)
message("HAVE_LDAC_ENCODER")
include_directories(${LDAC_INCLUDE_DIRS})
link_directories(${LDAC_LIBRARY_DIRS})
link_libraries(${LDAC_LIBRARIES})
include_directories(${LDAC_ENCODER_INCLUDE_DIRS})
link_directories(${LDAC_ENCODER_LIBRARY_DIRS})
link_libraries(${LDAC_ENCODER_LIBRARIES})
add_compile_definitions(HAVE_LDAC_ENCODER)
endif()

View File

@ -318,7 +318,7 @@ static void a2dp_demo_send_media_packet(void) {
case AVDTP_CODEC_MPEG_2_4_AAC:
a2dp_demo_send_media_packet_aac();
break;
#ifdef ENABLE_LDAC_ENCODER
#ifdef HAVE_LDAC_ENCODER
case AVDTP_CODEC_NON_A2DP:
local_cap = sc.local_stream_endpoint->sep.capabilities.media_codec;
uint32_t local_vendor_id = get_vendor_id(local_cap.media_codec_information);
@ -427,7 +427,7 @@ static int fill_aac_audio_buffer(a2dp_media_sending_context_t *context) {
}
#endif
#ifdef ENABLE_LDAC_ENCODER
#ifdef HAVE_LDAC_ENCODER
static int a2dp_demo_fill_ldac_audio_buffer(a2dp_media_sending_context_t *context) {
int total_samples_read = 0;
unsigned int num_audio_samples_per_ldac_buffer = LDACBT_ENC_LSU;
@ -507,7 +507,7 @@ static void avdtp_audio_timeout_handler(btstack_timer_source_t * timer){
#endif
case AVDTP_CODEC_ATRAC_FAMILY:
break;
#ifdef ENABLE_LDAC_ENCODER
#ifdef HAVE_LDAC_ENCODER
case AVDTP_CODEC_NON_A2DP:
local_cap = sc.local_stream_endpoint->sep.capabilities.media_codec;
uint32_t local_vendor_id = get_vendor_id(local_cap.media_codec_information);