[asterisk-dev] confuse no the method audiohook mix read side and write side data

Russell Bryant russell at digium.com
Sun Sep 12 21:00:45 CDT 2010




----- Original Message -----
> yep I look into the mixmonitor and finally track to function
> ast_slinear_saturated_add which actually
> mix the read and write audio. But I confuse on its implementation for
> it just simply add the read audio
> with write audio. The audio data is encoded so I think it should not
> directly add with it and it should
> first decode audio data as PCM then add.

Audio passed to the audiohook callbacks is not encoded.  It is decoded, AST_FORMAT_SLINEAR audio.

--
Russell Bryant
Digium, Inc.  |  Engineering Manager, Open Source Software
445 Jan Davis Drive NW   -    Huntsville, AL 35806  -  USA
jabber: rbryant at digium.com    -=-    skype: russell-bryant
www.digium.com -=- www.asterisk.org -=- blogs.asterisk.org




More information about the asterisk-dev mailing list