[asterisk-dev] gsmtolin translator seems miss frameout function.

John Wu jwjohn0 at gmail.com
Fri Sep 17 04:28:04 CDT 2010


Thank you very much!

On Thu, Sep 16, 2010 at 8:17 PM, Kevin P. Fleming <kpfleming at digium.com>wrote:

> On 09/16/2010 01:45 AM, John Wu wrote:
> > gsmtolin define as:
> >
> > static struct ast_translator gsmtolin = {
> >     .name = "gsmtolin",
> >     .srcfmt = AST_FORMAT_GSM,
> >     .dstfmt = AST_FORMAT_SLINEAR,
> >     .newpvt = gsm_new,
> >     .framein = gsmtolin_framein,
> >     .destroy = gsm_destroy_stuff,
> >     .sample = gsm_sample,
> >     .buffer_samples = BUFFER_SAMPLES,
> >     .buf_size = BUFFER_SAMPLES * 2,
> >     .desc_size = sizeof (struct gsm_translator_pvt ),
> > };
> >
> > I can't find the function pointer frameout be set. Will this actually
> > work? I doubt it.
>
> Since it does work, clearly it works... otherwise we'd get masses of bug
> reports about GSM translation not working :-)
>
> If you read the documentation in translate.h, you'll see that there is a
> *default* frameout function used if a translator does not define its own.
>
> --
> Kevin P. Fleming
> Digium, Inc. | Director of Software Technologies
> 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
> skype: kpfleming | jabber: kfleming at digium.com
> Check us out at www.digium.com & www.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/20100917/426ef2d4/attachment-0001.htm 


More information about the asterisk-dev mailing list