Hello,

On 6/13/07, stipus <[EMAIL PROTECTED]> wrote:
> Result of SipxCallAudioPlayFileStart() in mprFromFile:
> - Load file into buffer
> - Stream the buffer
>
> Result of SipxCallPlayBufferStart() in MprFromFile:
> - Copy buffer into new buffer
> - Stream the new buffer with same code as above !!!
>
> I don't understand what's happening here ... why does the same code can be
> jerky when it's called in a different way ?
> The only difference I see is:
>  SipxCallPlayBufferStart() --> In memory copy of one buffer to another
>  SipxCallAudioPlayFileStart() --> Load buffer from file.
>
> In my understanding, a file operation should be slower than an in memory
> copy ... but I get garbled audio only in the later case ...

Have you tried running sipXmediaAdapterLibTest? With EMBED_PROMPTS
deefined (see line 22 of CpPhoneMediaInterfaceTest.cpp) it play prompts
from memory. And I have not noticed problems with it, though it works "one
level down" to sipXtapi, operating directly on sipXmediaAdapterLib.

-- 
Regards,
Alexander Chemeris.

SIPez LLC.
SIP VoIP, IM and Presence Consulting
http://www.SIPez.com
tel: +1 (617) 273-4000
_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to