mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-17 08:56:49 -05:00
bluez5: lc3: number of blocks is not the number of channels
The number of channels is determined by Audio_Channel_Allocation. One frame block contains all channels. (BAP v1.0.1 Sec. 4.2) Fix the handling of frame blocks and counting of numbers of channels. We support and configure only one frame block per packet. Consider omitted Audio_Channel_Allocation to indicate MONO stream (see BAP v1.0.1 Sec 4.3.2).
This commit is contained in:
parent
e4cd99f76f
commit
8f840e703b
2 changed files with 64 additions and 36 deletions
|
|
@ -83,14 +83,6 @@
|
|||
|
||||
#define LC3_MAX_CHANNELS 28
|
||||
|
||||
typedef struct {
|
||||
uint8_t rate;
|
||||
uint8_t frame_duration;
|
||||
uint32_t channels;
|
||||
uint16_t framelen;
|
||||
uint8_t n_blks;
|
||||
} __attribute__ ((packed)) bap_lc3_t;
|
||||
|
||||
#define BT_ISO_QOS_CIG_UNSET 0xff
|
||||
#define BT_ISO_QOS_CIS_UNSET 0xff
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue