search for: copymemory

Displaying 6 results from an estimated 6 matches for "copymemory".

2005 Oct 09
0
Fw: problem in encoder/decoder
...E, &rate); speex_encoder_ctl(enc_state, SPEEX_SET_BITRATE, &bitrate); int tmp=1; // speex_encoder_ctl(enc_state, SPEEX_SET_VAD, &tmp); while(pos<pMsg->m_nBufferSize && encoded_bytes<pMsg->m_nBufferSize) { if((pMsg->m_nBufferSize-pos)>frame_size) { CopyMemory(input_frame,pMsg->m_pBuffer+pos,frame_size); pos += frame_size; } else { CopyMemory(input_frame,pMsg->m_pBuffer+pos,pMsg->m_nBufferSize-pos); pos+=(pMsg->m_nBufferSize-pos); } //encode input frame speex_bits_reset(&bits); speex_encode(enc_state,input_frame,&bits)...
2005 Jun 23
2
Speex and DS
...ctSound I only have jitter. Maybe you have some code samples how to compress standard DS buffers: LPDIRECTSOUND8 lpDS = NULL; LPDIRECTSOUNDCAPTURE8 lpDSC = NULL; LPDIRECTSOUNDBUFFER8 lpBuf1 = NULL; LPDIRECTSOUNDCAPTUREBUFFER8 lpBufCap1 = NULL; copying memory and playing without compression works : CopyMemory( pDSOutputLockedBuffer, pDSCaptureLockedBuffer, dwDSOutputLockedBufferSize ); but anything related to Speex just makes jitter :[. Please respond, because I'm really stuck on this one :[. I've read the sample code in the manual but and even done a bridge binary file to write buffer to disc...
2005 Jun 23
1
Speex and DS
...0*sizeof(short) Rafal ////////////////CODE/////////// // These should be equal if( dwDSOutputLockedBufferSize != dwDSCaptureLockedBufferSize ) return E_FAIL; // Sanity check unhandled case int size = dwDSOutputLockedBufferSize; //size in bytes char* buffer = new char[size]; // buffer of bytes CopyMemory( buffer, //fill the buffer pDSCaptureLockedBuffer, dwDSOutputLockedBufferSize ); void* enc_state; //states void* dec_state; #define FRAME_SIZE 160 //frame size in shorts, #define BUFFERSIZE 4*FRAME_SIZE*sizeof(short) #define SS sizeof(short) short in[FRAME_SIZE]; float input[FRAME_SIZE]; int nb...
2008 Apr 04
0
Wine release 0.9.59
...py. wineesd.drv: Assign to structs instead of using memcpy. winenas.drv: Assign to struct instead of using memcpy. winejack.drv: Assign to structs instead of using memcpy. wineoss.drv: Assign to structs instead of using memcpy. dinput: Assign to struct instead of using CopyMemory. dplayx: Assign to structs instead of using CopyMemory. rpcrt4: Void functions should not return a value. inetcomm: Void functions should not return a value. user32: Void functions should not return a value. dsound: Assign to structs instead of using CopyMemory....
2007 Apr 11
0
Problem with speex
...:=0 to encframe-1 do buffenc[j]:=RecordBuff[j]; speex_bits_reset(@encbits); speex_encode(encstate,@buffenc[0],@encbits); sz := speex_bits_nbytes(@encbits); SetLength(buffBytes,sz); speex_bits_write(@encbits,@buffBytes[0],sz); setlength(s3,length(buffbytes)); CopyMemory(@s3[1],@buffbytes[0],length(buffbytes)); Decode: d:array of smallint; speex_bits_read_from(@decbits,@s3[1],length(s3)); speex_decode(decstate,@decbits,@buffdec[0]); setlength(d,length(buffdec)); for j:=0 to length(buffdec)-1 do d[j]:=Round(buffdec[j]); I hope you w...
2007 Aug 24
0
speex DTX chore
...;bits); if (preprocess) speex_preprocess(preprocess, samples, NULL); // encode the frame moving in the samples buffer int transmit = speex_encode_int(enc_state, samples, &bits); nbBytes = speex_bits_write(&bits, buffer, 500); //IntToFourChar(nbBytes, &output[*written]); CopyMemory( output, buffer, nbBytes); *written = nbBytes; return transmit; }; //eof Encode()======================================================= [/code] [code] // Tester.cpp #include "SpeexDecoder.h" #include "SpeexEncoder.h" #include "lpc_win.h" #include <windo...