Displaying 1 result from an estimated 1 matches for "bwrite_data".
Did you mean:
write_data
2009 Jan 20
0
VoIP with wavefrom and speex
...{
speex_bits_destroy(&bits);
speex_encoder_destroy(enc_state);
return compr_length;
}
input[i] = source->lpData[n];
n++;
}
speex_bits_reset(&bits);
speex_encode(enc_state,input, &bits);
length = speex_bits_write(&bits, output, 200);
compr_length = bwrite_data(dest,compr_length,length); //writes 2 Byte into dest
memcpy(&dest[compr_length],output,length);
compr_length += length;
}
}
int audio_decode(WAVEHDR *dest, char *source, int srclen)
{
SpeexBits bits;
float output[160];
void *dec_state;
unsigned int i;
unsigned int reading_pos = 0;
u...