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

Russell Bryant russell at digium.com
Mon May 18 10:16:52 CDT 2009


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.

-- 
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



More information about the asterisk-dev mailing list