Anup | 18 Dec 2009 12:46

How to play the RTP packets as soon as it comes to the UDP buffer.

Consider the following scenario: As soon as a rtp packet arrives, i want to decode and play the Rtp packets using waveoutwrite().
Assume the voice data is encoded using Speex(narrow band). Can anyone help me with what code i must include to the get the decoding done.
 
Thanks
Anup
_______________________________________________
sipxtapi-dev mailing list
sipxtapi-dev <at> list.sipfoundry.org
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/
Daniel Petrie | 25 Dec 2009 23:23
Favicon

Re: How to play the RTP packets as soon as it comes to the UDP buffer.

Hi Anup:
Please provide some more context.  I am not sure you are headed down the best path for what you are trying to do. 
Please explain at a high level what you are trying to accomplish and the requirements of your application
related to the RTP handling.

Also have a look at 
http://sipxtapi.sipfoundry.org/wiki/SipXmediaLib_Overview
In particular look at the Flowgraph concept.  The media subsystem provides a means to handle RTP streams and
send them to standard or customized devices (e.g. mic and speakers).  There are means to record audio to a
buffer or file.

Cheers,
Dan

--- On Fri, 12/18/09, Anup <anup <at> rhubcom.com> wrote:

> From: Anup <anup <at> rhubcom.com>
> Subject: [sipxtapi-dev] How to play the RTP packets as soon as it comes to the UDP buffer.
> To: sipxtapi-dev <at> list.sipfoundry.org
> Date: Friday, December 18, 2009, 6:46 AM
> 
> 
>  
>  
> 
> 
>  
> Consider the following
> scenario: As soon as a rtp 
> packet arrives, i want to decode and play the Rtp packets
> using 
> waveoutwrite().
> Assume the voice data is encoded using Speex(narrow band). 
> Can anyone help me with what code i must include to the get
> the decoding done. 
> 
>  
> Thanks
> Anup 
> 
> -----Inline Attachment Follows-----
> 
> _______________________________________________
> sipxtapi-dev mailing list
> sipxtapi-dev <at> list.sipfoundry.org
> List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/
_______________________________________________
sipxtapi-dev mailing list
sipxtapi-dev <at> list.sipfoundry.org
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/


Gmane