Displaying 4 results from an estimated 4 matches for "blockbufferref".
2013 Feb 12
0
Speexdec says: 'This doesn't look like a Speex file' (am I missing headers?)
...ZE,
&samplesPerFrame); // 320 samples/frame
speex_encoder_ctl(encoderState, SPEEX_SET_QUALITY, &quality);
CMItemCount numberOfSamples =
CMSampleBufferGetNumSamples(sampleBuffer); // 375 samples
size_t sampleSize = CMSampleBufferGetSampleSize(sampleBuffer, 0); // 2
bytes
CMBlockBufferRef blockBufferRef =
CMSampleBufferGetDataBuffer(sampleBuffer); // see attachment (b) above
size_t blockBufferDataLength =
CMBlockBufferGetDataLength(blockBufferRef); // 750 bytes
NSMutableData *allSamplesMutableData = [NSMutableData
dataWithLength:blockBufferDataLength];
CMBlockBufferCopy...
2013 Feb 12
0
Speexdec says: 'This doesn't look like a Speex file' (am I missing headers?).
...&samplesPerFrame); // 320 samples/frame
speex_encoder_ctl(encoderState, SPEEX_SET_QUALITY, &quality);
CMItemCount numberOfSamples = CMSampleBufferGetNumSamples(sampleBuffer); // 375 samples
size_t sampleSize = CMSampleBufferGetSampleSize(sampleBuffer, 0); // 2 bytes
CMBlockBufferRef blockBufferRef = CMSampleBufferGetDataBuffer(sampleBuffer); // see attachment (b) above
size_t blockBufferDataLength = CMBlockBufferGetDataLength(blockBufferRef); // 750 bytes
NSMutableData *allSamplesMutableData = [NSMutableData dataWithLength:blockBufferDataLength];
CMBlockBufferCopy...
2013 Feb 12
0
Speexdec says: 'This doesn't look like a Speex file' (am I missing headers?).
...ZE,
&samplesPerFrame); // 320 samples/frame
speex_encoder_ctl(encoderState, SPEEX_SET_QUALITY, &quality);
CMItemCount numberOfSamples =
CMSampleBufferGetNumSamples(sampleBuffer); // 375 samples
size_t sampleSize = CMSampleBufferGetSampleSize(sampleBuffer, 0); // 2
bytes
CMBlockBufferRef blockBufferRef =
CMSampleBufferGetDataBuffer(sampleBuffer); // see attachment (b) above
size_t blockBufferDataLength =
CMBlockBufferGetDataLength(blockBufferRef); // 750 bytes
NSMutableData *allSamplesMutableData = [NSMutableData
dataWithLength:blockBufferDataLength];
CMBlockBufferCopy...
2013 Feb 12
0
Speexdec says: 'This doesn't look like a Speex file' (am I missing headers?)
...&samplesPerFrame); // 320 samples/frame
speex_encoder_ctl(encoderState, SPEEX_SET_QUALITY, &quality);
CMItemCount numberOfSamples = CMSampleBufferGetNumSamples(sampleBuffer); // 375 samples
size_t sampleSize = CMSampleBufferGetSampleSize(sampleBuffer, 0); // 2 bytes
CMBlockBufferRef blockBufferRef = CMSampleBufferGetDataBuffer(sampleBuffer); // see attachment (b) above
size_t blockBufferDataLength = CMBlockBufferGetDataLength(blockBufferRef); // 750 bytes
NSMutableData *allSamplesMutableData = [NSMutableData dataWithLength:blockBufferDataLength];
CMBlockBufferCopy...