HydrogenAudio

Lossy Audio Compression => Other Lossy Codecs => Topic started by: vigneshv55 on 2013-05-07 08:23:36

Title: Clicks and Pops in SBC Decoder
Post by: vigneshv55 on 2013-05-07 08:23:36
Hi All...

Currently i am working with SBC Decoder, while i run my decoder for the test case with 44.1Khz and 16blks and 8 sub bands it produces a output with clicks and pops. But no clicks and pops in output when i run the same testcase in reference SBC decoder in A2DP profile. Could any one guide me to solve this issue? The clicks and pops are occur in samples which has high amplitude.

Thanks and Regards,
Vigneshwaran V
Title: Clicks and Pops in SBC Decoder
Post by: Dynamic on 2013-05-07 09:02:08
Don't know anything specific, but it sounds like clipping isn't properly handled, possibly if you're using integer mathematics. If you divide into subbands and reduce bit-depth then recombine (or other operations like filtering), you'll often get some peaks higher than the original (Gibbs phenomenon). You need to handle those properly to max them out to full scale positive or negative as appropriate rather than ignore cut-off the extra most significant bit that's required to represent them.

In decimal imagine I use 2-figure representation so 99 is my limit and that turns into 105. If I ignore the 3rd figure, that looks like 05, which is way different to 99. In 2's complement binary, it can even turn a positive into a negative. 01111111 is positive full scale +127 but 10000000 is negative full scale -128 in 8-bit 2's complement.

That's pure speculation but somethiing to look for given it occurs at high amplitudes only.