[asterisk-dev] How to create a slinear silent frame?

Kaloyan Kovachev kkovachev at varna.net
Mon May 18 11:02:17 CDT 2009


On Mon, 18 May 2009 10:16:52 -0500, Russell Bryant wrote
> Atis Lezdins wrote:
> > While on topic, i'm also interested how to create a beep frame. There
> > are some frequency generations in indications.c, but i guess i'll need
> > just a frame :)
> 
> As Dmitry pointed out, a single frame isn't going to do the job here.
> 
> If you need frame level access to a beep, your best bet is to use the
> file stream API.  You can open a beep sound file with ast_openstream()
> and then call ast_readframe() to get each frame.

ast_openstream() requires a channel ... is it possible to open a filestream in
SLINEAR without the need for a channel?

> 
> -- 
> Russell Bryant
> Digium, Inc. | Senior Software Engineer, Open Source Team Lead
> 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
> 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




More information about the asterisk-dev mailing list