bluez5: add LHDC V5 A2DP decoder

This commit is contained in:
anonymix007 2025-04-19 18:03:21 +03:00
parent a9ba34da23
commit f2b3b63f21
6 changed files with 318 additions and 20 deletions

View file

@ -117,6 +117,24 @@ if get_option('spa-plugins').allowed()
endif
summary({'LHDC V3 Decoder': lhdc_enc_dep.found()}, bool_yn: true, section: 'Bluetooth audio codecs')
lhdc_v5_enc_dep = dependency('lhdcv5BT-enc', required : false)
if not lhdc_v5_enc_dep.found()
lhdc_v5_enc_lhdc_h_dep = cc.find_library('lhdcv5BT_enc', has_headers: ['lhdcv5BT.h'], required : false)
if lhdc_v5_enc_lhdc_h_dep.found()
lhdc_v5_enc_dep = declare_dependency(dependencies : [ lhdc_v5_enc_lhdc_h_dep ])
endif
endif
summary({'LHDC V5 Encoder': lhdc_v5_enc_dep.found()}, bool_yn: true, section: 'Bluetooth audio codecs')
lhdc_v5_dec_dep = dependency('lhdcv5BT-dec', required : false)
if not lhdc_v5_dec_dep.found()
lhdc_v5_dec_lhdc_h_dep = cc.find_library('lhdcv5BT_dec', has_headers: ['lhdcv5BT_dec.h'], required : false)
if lhdc_v5_dec_lhdc_h_dep.found()
lhdc_v5_dec_dep = declare_dependency(dependencies : [ lhdc_v5_dec_lhdc_h_dep ])
endif
endif
summary({'LHDC V5 Decoder': lhdc_v5_enc_dep.found()}, bool_yn: true, section: 'Bluetooth audio codecs')
if get_option('bluez5-codec-opus').enabled() and not opus_dep.found()
error('bluez5-codec-opus enabled, but opus dependency not found')
endif