How is the buffer allocated in the first place? I've used the 
sipxCallPlayBufferStart (from .NET) with no problems, allocating buffer using 
Marshal.AllocHGlobal( ).
 
Regards,
Daníel



> From: [EMAIL PROTECTED]> To: [email protected]> CC: [EMAIL 
> PROTECTED]> Subject: Re: [sipxtapi-dev] SipxCallPlayBufferStart and jerky 
> output ...I'm puzzled !> Date: Thu, 14 Jun 2007 13:27:37 +0200> > I have 
> traced everything with the debugger, and I don't see any conversion> 
> happening.> The buffer is generated with 16 bit, 8KHz PCM and doesn't need to 
> be> converted to be streamed by MprFromFile.> > I fear it's a problem when 
> the buffer is transfered from a COM object to> .Net then to C++> There are 
> two levels of Interop happening under the hood:> > [c#.Net] 
> GeneratePCMBufferFromText( buffer )> [COM] ... SAPI is a COM component, so 
> there is a first level of interop to> generate the buffer.> [c#.Net] 
> SipxCallPlayBufferStart( buffer )> [C++] sipxCallPlayBufferStart( buffer ) A 
> second level of interop here from> .Net to C++...> > If I have enough time, 
> I'll try to create a mprSpeech.cpp and directly call> SAPI from the C++ 
> side.> I may be able to make a quick test using mprFromFile ...> > stipus> > 
> ----- Original Message ----- > From: "Daniel Sigurgeirsson" <[EMAIL 
> PROTECTED]>> To: <[email protected]>> Sent: Wednesday, June 
> 13, 2007 3:33 PM> Subject: Re: [sipxtapi-dev] SipxCallPlayBufferStart and 
> jerky output ...I'm> puzzled !> > > Have you tried adding trace output to the 
> sipxtapi code which loads the> file, and check if some conversion is being 
> done?> > Regards,> Daníel> 
_________________________________________________________________
Make every IM count. Download Windows Live Messenger and join the i’m 
Initiative now. It’s free. 
http://im.live.com/messenger/im/home/?source=TAGWL_June07
_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to