Allen | 13 Nov 2009 23:30
Picon

question about MprEncode::doPrimaryCodec(MpAudioBufPtr in)

Hi, all,

I am new to sipXtapi. I downloaded the source code from the main branch:
http://scm.sipfoundry.org/rep/sipX/main/

when I compile it, it showed an error in
MprEncode::doPrimaryCodec(MpAudioBufPtr in), "inSamplesNum" is not
declared.

May I know how to deal with it?

Thanks,

-Allen
_______________________________________________
sipxtapi-dev mailing list
sipxtapi-dev <at> list.sipfoundry.org
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Jeremya | 15 Nov 2009 11:14

Re: question about MprEncode::doPrimaryCodec(MpAudioBufPtr in)

Allen wrote:
> Hi, all,
>
> I am new to sipXtapi. I downloaded the source code from the main branch:
> http://scm.sipfoundry.org/rep/sipX/main/
>
> when I compile it, it showed an error in
> MprEncode::doPrimaryCodec(MpAudioBufPtr in), "inSamplesNum" is not
> declared.
>
> May I know how to deal with it?

There appears to be a typo in the code in that copy of svn. I found that
if I changed inSamplesNum to numSamplesIn in mprEncode.cpp it all
compiled and ran the test programs.

I recall there were a bunch of other errors with similar resolutions -
when I did the svn checkout earlier this week.

_______________________________________________
sipxtapi-dev mailing list
sipxtapi-dev <at> list.sipfoundry.org
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

dsuh | 18 Nov 2009 21:32
Picon

Re: question about MprEncode::doPrimaryCodec(MpAudioBufPtr in)

> -----Original Message-----
> From: Jeremya [mailto:jeremy <at> electrosilk.net]
> Sent: Sunday, November 15, 2009 2:14 AM
> Cc: sipxtapi-dev <at> list.sipfoundry.org
> Subject: Re: [sipxtapi-dev] question about
> MprEncode::doPrimaryCodec(MpAudioBufPtr in)
> 
> Allen wrote:
> > Hi, all,
> >
> > I am new to sipXtapi. I downloaded the source code from the main
> branch:
> > http://scm.sipfoundry.org/rep/sipX/main/
> >
> > when I compile it, it showed an error in
> > MprEncode::doPrimaryCodec(MpAudioBufPtr in), "inSamplesNum" is not
> > declared.
> >
> > May I know how to deal with it?
> 
> There appears to be a typo in the code in that copy of svn. I found
> that
> if I changed inSamplesNum to numSamplesIn in mprEncode.cpp it all
> compiled and ran the test programs.

Changing this variable name builds but does not make sense because this
local variable is uninitialized when it is used here.
I suspect it should be replaced with in->getSamplesNumber() instead but I
cannot confirm this because I do not know the original problem this was
fixing.
(Continue reading)


Gmane