Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: SNR bit allocation method in SBC (Read 6210 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

SNR bit allocation method in SBC

Hi,
I am new to the audio, and i am trying to understand SBC Encoder. How SNR bit allocation method is related to the signal to noise ration?
In calculation of the scale factors, can we take scale factor of subband as number of bits of max subband sample?

Please help me to understand above.

Thanks in advance.

Regards,
Sapthagiri.

SNR bit allocation method in SBC

Reply #1
I am new to the audio, and i am trying to understand SBC Encoder. How SNR bit allocation method is related to the signal to noise ratio?

In calculation of the scale factors, can we take scale factor of subband as number of bits of max subband sample?

Yes. That's the idea. This will lead to a flat quantization noise spectrum. In terms of psychoacoustics this is not desirable though. The other bit allocation approach is still very simple but accounts for some psychoacoustic effects. So, if I recall correctly, it's be like this:
Code: [Select]
// for SNR bit allocation strategy
bitsneeded = scalefactor

// for the other strategy
bitsneeded = (scalefactor - table[subband]) / 2;

where table contains some offsets depending on the frequency.

Then, allocation is iterativly adjusted so that nearly all bits from the bit pool are spent.