mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-27 07:58:16 -04:00
bluez5: use ldacBT for both decode and encode
This commit is contained in:
parent
7fd05e7eaa
commit
c727e8f8f9
3 changed files with 9 additions and 5 deletions
|
|
@ -72,13 +72,18 @@ if get_option('spa-plugins').allowed()
|
|||
summary({'LDAC ABR': ldac_abr_dep.found()}, bool_yn: true, section: 'Bluetooth audio codecs')
|
||||
|
||||
if get_option('bluez5-codec-ldac-dec').allowed()
|
||||
ldac_dec_dep = dependency('ldacBT-dec', required : false)
|
||||
if not ldac_dec_dep.found()
|
||||
dep = cc.find_library('ldacBT_dec', required : false)
|
||||
dep = dependency('ldacBT', required : false)
|
||||
if dep.found() and cc.has_function('ldacBT_decode', dependencies : dep)
|
||||
ldac_dec_dep = dep
|
||||
else
|
||||
dep = cc.find_library('ldacBT', required : false)
|
||||
if dep.found() and cc.has_function('ldacBT_decode', dependencies : dep)
|
||||
ldac_dec_dep = dep
|
||||
endif
|
||||
endif
|
||||
if ldac_dec_dep.found()
|
||||
ldac_dep = ldac_dec_dep # use ldacBT for both decode and encode
|
||||
endif
|
||||
if not ldac_dec_dep.found() and get_option('bluez5-codec-ldac-dec').enabled()
|
||||
error('LDAC decoder library not found')
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue