Displaying 3 results from an estimated 3 matches for "pcodecrawbuffer".
2009 Sep 02
3
voice sound like robot voice :)
...// Prepare buffers
/////////////////////////////////////////////////////////////////
uint voicememsize = Cvoicecodecrawbuffersize + CODEC_MAX_BUFFER_SIZE;
byte *voicemem = (byte*)pMemoryMng->Alloc(voicememsize);
memset( voicemem, 0, voicememsize );
// raw voice input buffer
pCodecRawBuffer = voicemem;
pCodecRawBufferCur = pCodecRawBuffer;
//
voicemem += Cvoicecodecrawbuffersize;
// input/output voice buffer
pCodecBuffer = voicemem;
}
TVoiceCodec::~TVoiceCodec()
{
if ( pCodecEncoderState )
{
speex_preprocess_state_destroy( pPreprocessorState );
spee...
2009 Sep 03
1
Speex-dev Digest, Vol 64, Issue 2
...///////////////////////////////
> > uint voicememsize = Cvoicecodecrawbuffersize + CODEC_MAX_BUFFER_SIZE;
> > byte *voicemem = (byte*)pMemoryMng->Alloc(voicememsize);
> > memset( voicemem, 0, voicememsize );
> >
> > // raw voice input buffer
> > pCodecRawBuffer = voicemem;
> > pCodecRawBufferCur = pCodecRawBuffer;
> > //
> > voicemem += Cvoicecodecrawbuffersize;
> >
> > // input/output voice buffer
> > pCodecBuffer = voicemem;
> > }
> >
> >
> > TVoiceCodec::~TVoiceCodec()
> >...
2009 Sep 03
0
voice sound like robot voice :)
.../////////////////////////////////////////////////////////////
> uint voicememsize = Cvoicecodecrawbuffersize + CODEC_MAX_BUFFER_SIZE;
> byte *voicemem = (byte*)pMemoryMng->Alloc(voicememsize);
> memset( voicemem, 0, voicememsize );
>
> // raw voice input buffer
> pCodecRawBuffer = voicemem;
> pCodecRawBufferCur = pCodecRawBuffer;
> //
> voicemem += Cvoicecodecrawbuffersize;
>
> // input/output voice buffer
> pCodecBuffer = voicemem;
> }
>
>
> TVoiceCodec::~TVoiceCodec()
> {
> if ( pCodecEncoderState )
> {
>...