search for: nbbytesenc

Displaying 2 results from an estimated 2 matches for "nbbytesenc".

Did you mean: nbbytesdec
2005 Jun 23
1
Speex and DS
...ry( 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 nbBytesenc; int nbBytesdec; SpeexBits bitsenc; //bits for encoding SpeexBits bitsdec; //bits for decoding enc_state = speex_encoder_init(&speex_nb_mode); int tmp=10; speex_encoder_ctl(enc_state, SPEEX_SET_QUALITY, &tmp); speex_bits_init(&bitsenc); FILE* fout = fopen("_ee.raw","w&...
2005 Jun 23
2
Speex and DS
Hello everyone I've a following problem with the speex codec. I'm developing application that is supposed to read sounds from the microphone with DirectSoundCapture. Unfortunately when I want to compress and decompress the sound buffer from DirectSound I only have jitter. Maybe you have some code samples how to compress standard DS buffers: LPDIRECTSOUND8 lpDS = NULL;