btstack_lc3plus_fraunhofer: fix lc3plus_dec_init without ENABLE_HR_MODE

This commit is contained in:
Matthias Ringwald 2023-10-10 10:56:19 +02:00
parent 753e0cc26a
commit 75b056dc9a

View File

@ -78,7 +78,11 @@ static uint8_t lc3plus_fraunhofer_decoder_configure(void * context, uint32_t sam
instance->samples_per_frame = btstack_lc3_samples_per_frame(sample_rate, frame_duration); instance->samples_per_frame = btstack_lc3_samples_per_frame(sample_rate, frame_duration);
LC3PLUS_Error error; LC3PLUS_Error error;
#ifdef ENABLE_HR_MODE
error = lc3plus_dec_init(decoder, sample_rate, 1, LC3PLUS_PLC_ADVANCED, 0); error = lc3plus_dec_init(decoder, sample_rate, 1, LC3PLUS_PLC_ADVANCED, 0);
#else
error = lc3plus_dec_init(decoder, sample_rate, 1, LC3PLUS_PLC_ADVANCED);
#endif
btstack_assert(error == LC3PLUS_OK); btstack_assert(error == LC3PLUS_OK);
error = lc3plus_dec_set_frame_dms(decoder, duration_us / 100); error = lc3plus_dec_set_frame_dms(decoder, duration_us / 100);