search for: bget_data

Displaying 1 result from an estimated 1 matches for "bget_data".

Did you mean: get_data
2009 Jan 20
0
VoIP with wavefrom and speex
...]; void *dec_state; unsigned int i; unsigned int reading_pos = 0; unsigned short length; unsigned int writing_pos = 0; //Decodiern: speex_bits_init(&bits); dec_state = speex_decoder_init(&speex_nb_mode); while(reading_pos < srclen && writing_pos < 512) { length = bget_data(source,reading_pos,sizeof(short)); //get 2 Byte value from source reading_pos += 2+length; speex_bits_read_from(&bits,&source[reading_pos], length); speex_decode(dec_state, &bits, output); memcpy(&dest->lpData[writing_pos],output,160); writing_pos += 160; } speex_bits...