Support for higher quality bluetooth A2DP audio codecs in sailfishos

Weird, I used your patch, and it did change the sound settings, but seemed to make the sound worse.
I went from default:

I: [pulseaudio] a2dp-codec-sbc.c: SBC parameters: allocation=Loudness, subbands=8, blocks=16, mode=JointStereo bitpool=53 codesize=512 frame_length=119
D: [bluetooth] a2dp-codec-sbc.c: Using SBC codec implementation: Generic C

To this with your patch:

I: [pulseaudio] a2dp-codec-sbc.c: SBC parameters: allocation=SNR, subbands=8, blocks=16, mode=DualChannel bitpool=38 codesize=512 frame_length=164

Frame length has increased, but bitpool decreased. Allocation and modes have changed too, weird.
Could someone help me with calculating the bitrate and if my ears are deceiving me?
Calculating by bitpool the new bitrate is lower, but by frame length is higher.

1 Like