Displaying 2 results from an estimated 2 matches for "cbitsenc".
Did you mean:
bitsenc
2005 Jun 23
1
Speex and DS
...c; //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");
char* pbuffer = buffer;
int nFrames = BUFFERSIZE/FRAME_SIZE;
char cbitsenc[200];
for(int i = 0 ; i < nFrames ; i++)
{
memcpy(in,pbuffer,FRAME_SIZE*SS); //fill in array with shorts
pbuffer+=FRAME_SIZE*SS; // from array of char
for (i=0;i<FRAME_SIZE;i++)
input[i]=in[i];
speex_bits_reset(&bitsenc);
speex_encode(enc_state, input, &bitsenc);
/*Copy the...
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;