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

John Wu jwjohn0 at gmail.com
Sun Sep 12 21:10:49 CDT 2010


On Mon, Sep 13, 2010 at 10:00 AM, Russell Bryant <russell at digium.com> wrote:

>
>
>
> ----- 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.
>
 This make sense thanks.

>
> --
> 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
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20100913/1850e365/attachment.htm 


More information about the asterisk-dev mailing list