Messing around with id3v2 tags i got stuck on "synchsafe integers". :SHOCKED:
Synchsafe integers are integers that keep the highest bit zeroed, making seven bits out of eight available. Thus a 32 bit synchsafe integer can store 28 bits of information. 255 (00000000 11111111) encoded as a synchsafe integer is 383 (00000001 01111111).
Can someone help me convert "01111111 01111111 01111111 01111111" to "00001111 11111111 11111111 11111111" and vice versa?
i've found some c++ functions, which do the Synchsafe-To/From-Int Conversion, but c++ is chinese for me.
I've seen that there are Bitshifting Functions in B4A, but i don't know how to use them.
Synchsafe integers are integers that keep the highest bit zeroed, making seven bits out of eight available. Thus a 32 bit synchsafe integer can store 28 bits of information. 255 (00000000 11111111) encoded as a synchsafe integer is 383 (00000001 01111111).
Can someone help me convert "01111111 01111111 01111111 01111111" to "00001111 11111111 11111111 11111111" and vice versa?
i've found some c++ functions, which do the Synchsafe-To/From-Int Conversion, but c++ is chinese for me.
I've seen that there are Bitshifting Functions in B4A, but i don't know how to use them.