[Asterisk-Dev] read callback function never is launched

Kristian Nielsen kn at sifira.dk
Tue May 10 02:20:43 MST 2005


"dmb" <montejodaniel at hotmail.com> writes:

> Hello,
> And if you want play an audio file without any socket?

Use ast_queue_frame() in a separate thread.

Create a thread with a loop with ast_sched_wait(), poll(), and
ast_sched_runq() in it. Then use ast_sched_add() to setup callbacks
that will be called periodically and may invoke the ast_queue_frame().

 - Kristian.

-- 
Kristian Nielsen   kn at sifira.dk
Development Manager, Sifira A/S




More information about the asterisk-dev mailing list