Displaying 1 result from an estimated 1 matches for "_tocompressbuffer".
2011 Jun 02
1
Any tips for speeding up encoding on iPhone?
..._compressedSpeexBufferSize = 0;
}
- (void)encodeThread {
// alloc buffer to hold the specified amount of short type samples
short *input = malloc(speexFrameSize * sizeof(short));
while (recording) {
// proceed only if we have enough samples for a frame
if (_toCompressBuffer.size >= speexFrameSize * sizeof(short)) {
// fill frame with samples
//memcpy(input, _toCompressBuffer.data, speexFrameSize *
sizeof(short));
// process one frame at a time
NSLog(@"Start encode");
speex_bits_reset(&...