mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-06 03:40:16 +00:00
btstack_lc3plus_fraunhofer: fix lc3plus_dec_init without ENABLE_HR_MODE
This commit is contained in:
parent
753e0cc26a
commit
75b056dc9a
@ -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);
|
||||
|
||||
LC3PLUS_Error error;
|
||||
#ifdef ENABLE_HR_MODE
|
||||
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);
|
||||
|
||||
error = lc3plus_dec_set_frame_dms(decoder, duration_us / 100);
|
||||
|
Loading…
x
Reference in New Issue
Block a user