Skip to content

Commit

Permalink
Support for A2DP LHDC codec with v2 capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
arkq committed Dec 8, 2024
1 parent 3f1d695 commit b842141
Show file tree
Hide file tree
Showing 12 changed files with 352 additions and 107 deletions.
3 changes: 3 additions & 0 deletions .github/iwyu.imp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@

{ include: [ '<glib/gtypes.h>', private, '<glib.h>', public ] },
{ include: [ '"gobject/gclosure.h"', private, '<glib-object.h>', public ] },
{ include: [ '"gio/gdbusinterface.h"', private, '<gio/gio.h>', public ] },
{ include: [ '"gio/gdbusinterfaceskeleton.h"', private, '<gio/gio.h>', public ] },
{ include: [ '"gio/gdbusobject.h"', private, '<gio/gio.h>', public ] },
{ include: [ '"gio/gdbusobjectmanager.h"', private, '<gio/gio.h>', public ] },
{ include: [ '"gio/gdbusobjectmanagerclient.h"', private, '<gio/gio.h>', public ] },
{ include: [ '"gio/gdbusobjectmanagerserver.h"', private, '<gio/gio.h>', public ] },
{ include: [ '"gio/gdbusobjectskeleton.h"', private, '<gio/gio.h>', public ] },

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codecov-report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
working-directory: ${{ github.workspace }}/build
run: make cov
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: build/lcov.info
2 changes: 1 addition & 1 deletion NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ unreleased
- renamed bluealsa to bluealsad (no backward compatibility)
- renamed bluealsa.conf to org.bluealsa.conf (no backward compatibility)
- renamed bluealsa-cli to bluealsactl (no backward compatibility)
- optional support for A2DP Sink and Source with LHDC v3 codec
- optional support for A2DP Sink and Source with LHDC v2 and v3 codec
- channel map and volume control for surround sound (5.1, 7.1) audio
- native A2DP volume control by default (dropped --a2dp-volume option)
- fix configuration for Android 13 A2DP Opus codec
Expand Down
16 changes: 8 additions & 8 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -220,22 +220,22 @@ AM_COND_IF([ENABLE_LDAC], [
AC_DEFINE([ENABLE_LDAC], [1], [Define to 1 if LDAC is enabled.])
])

AC_ARG_ENABLE([midi],
[AS_HELP_STRING([--enable-midi], [enable Bluetooth LE MIDI support])])
AM_CONDITIONAL([ENABLE_MIDI], [test "x$enable_midi" = "xyes"])
AM_COND_IF([ENABLE_MIDI], [
AC_DEFINE([ENABLE_MIDI], [1], [Define to 1 if Bluetooth LE MIDI is enabled.])
])

AC_ARG_ENABLE([lhdc],
[AS_HELP_STRING([--enable-lhdc], [enable LHDC support])])
AM_CONDITIONAL([ENABLE_LHDC], [test "x$enable_lhdc" = "xyes"])
AM_COND_IF([ENABLE_LHDC], [
AC_DEFINE([ENABLE_LHDC], [1], [Define to 1 if LHDC is enabled.])
PKG_CHECK_MODULES([LHDC_DEC], [ldhcBT-dec >= 4.0.2])
PKG_CHECK_MODULES([LHDC_DEC], [lhdcBT-dec >= 4.0.2])
PKG_CHECK_MODULES([LHDC_ENC], [lhdcBT-enc >= 4.0.6])
])

AC_ARG_ENABLE([midi],
[AS_HELP_STRING([--enable-midi], [enable Bluetooth LE MIDI support])])
AM_CONDITIONAL([ENABLE_MIDI], [test "x$enable_midi" = "xyes"])
AM_COND_IF([ENABLE_MIDI], [
AC_DEFINE([ENABLE_MIDI], [1], [Define to 1 if Bluetooth LE MIDI is enabled.])
])

AC_ARG_ENABLE([mp3lame],
[AS_HELP_STRING([--enable-mp3lame], [enable MP3 support])])
AM_CONDITIONAL([ENABLE_MP3LAME], [test "x$enable_mp3lame" = "xyes"])
Expand Down
Loading

0 comments on commit b842141

Please sign in to comment.