search for: writeencodedsamples

Displaying 4 results from an estimated 4 matches for "writeencodedsamples".

2010 Apr 10
2
Is Speex 1.0 and >=1.1 compatible?
...ts); buf_len = 0; if (++frame_cnt == 4) // Four frames per packet { speex_bits_insert_terminator(&bits); int nbytes = speex_bits_nbytes(&bits); char output_buf[nbytes]; nbytes = speex_bits_write(&bits, output_buf, nbytes); writeEncodedSamples(output_buf, nbytes); speex_bits_reset(&bits); frame_cnt = 0; } } } return count; } /* AudioEncoderSpeex::writeSamples */ The decoder have looked like this for quite a while: void AudioDecoderSpeex::writeEncodedSamples(void *buf, int size) { char *ptr = (...
2010 Apr 11
2
Is Speex 1.0 and >=1.1 compatible?
...> > { > > > > speex_bits_insert_terminator(&bits); > > int nbytes = speex_bits_nbytes(&bits); > > char output_buf[nbytes]; > > nbytes = speex_bits_write(&bits, output_buf, nbytes); > > writeEncodedSamples(output_buf, nbytes); > > speex_bits_reset(&bits); > > frame_cnt = 0; > > > > } > > > > } > > > > } > > > > return count; > > > > } /* AudioEncoderSpeex::writeSample...
2010 Apr 10
0
Is Speex 1.0 and >=1.1 compatible?
...if (++frame_cnt == 4) // Four frames per packet > { > speex_bits_insert_terminator(&bits); > int nbytes = speex_bits_nbytes(&bits); > char output_buf[nbytes]; > nbytes = speex_bits_write(&bits, output_buf, nbytes); > writeEncodedSamples(output_buf, nbytes); > speex_bits_reset(&bits); > frame_cnt = 0; > } > } > } > > return count; > > } /* AudioEncoderSpeex::writeSamples */ > > > > The decoder have looked like this for quite a while: > > void Audio...
2010 Apr 11
0
Is Speex 1.0 and >=1.1 compatible?
...{ >>> >>> speex_bits_insert_terminator(&bits); >>> int nbytes = speex_bits_nbytes(&bits); >>> char output_buf[nbytes]; >>> nbytes = speex_bits_write(&bits, output_buf, nbytes); >>> writeEncodedSamples(output_buf, nbytes); >>> speex_bits_reset(&bits); >>> frame_cnt = 0; >>> >>> } >>> >>> } >>> >>> } >>> >>> return count; >>> >>> } /* AudioEncode...