search for: cbitsdec

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

Did you mean: bitsdec
2005 Jun 23
1
Speex and DS
...(int), 1, fout); /*Write the compressed data*/ fwrite(cbitsenc, 1, nbBytesenc, fout); } fclose(fout); speex_encoder_destroy(enc_state); /*Destroy the bit-packing struct*/ speex_bits_destroy(&bitsenc); /* decoding */ FILE* fin = fopen("_ee.raw","r"); //get the file char cbitsdec[200]; short out[FRAME_SIZE]; float output[FRAME_SIZE]; dec_state = speex_decoder_init(&speex_nb_mode); speex_bits_init(&bitsdec); char* buffer2 = new char[size]; // the output buffer char* pbuffer2 = buffer2; // pointer to the output buffer while (1) { //Read the size encoded by sampleenc...
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;