[Asterisk-Users] Codec Formats

Steven Critchfield critch at basesys.com
Fri Mar 14 14:02:06 MST 2003


On Fri, 2003-03-14 at 14:44, John Vozza wrote:
> Thanks for the feedback but I'm still lost on this one.... (Forgive my
> ignorance please)
> 
> I don't understand how "#define AST_FORMAT_ADPCM        (1 << 5)" becomes
> a "format =  32" in the * console display.

1 << 5

means to shift 1, 5 bits to the left.
In binary 1 is 00000001
Shifted 5 bits left you get 00100000
That leaves the 1 in the 32 spot, therefore it becomes a 32.

Hope this helps. 
-- 
Steven Critchfield  <critch at basesys.com>




More information about the asterisk-users mailing list