Displaying 4 results from an estimated 4 matches for "allsamplesmutabledata".
2013 Feb 12
0
Speexdec says: 'This doesn't look like a Speex file' (am I missing headers?)
...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];
CMBlockBufferCopyDataBytes(blockBufferRef, 0, blockBufferDataLength,
allSamplesMutableData.mutableBytes); // copying bytes to object
int nextSampleStartPosition = 0;
for (int i = 0; i < numberOfSamples; i++) {
NSData...
2013 Feb 12
0
Speexdec says: 'This doesn't look like a Speex file' (am I missing headers?).
...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];
CMBlockBufferCopyDataBytes(blockBufferRef, 0, blockBufferDataLength, allSamplesMutableData.mutableBytes); // copying bytes to object
int nextSampleStartPosition = 0;
for (int i = 0; i < numberOfSamples; i++) {
NSData...
2013 Feb 12
0
Speexdec says: 'This doesn't look like a Speex file' (am I missing headers?).
...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];
CMBlockBufferCopyDataBytes(blockBufferRef, 0, blockBufferDataLength,
allSamplesMutableData.mutableBytes); // copying bytes to object
int nextSampleStartPosition = 0;
for (int i = 0; i < numberOfSamples; i++) {
NSData...
2013 Feb 12
0
Speexdec says: 'This doesn't look like a Speex file' (am I missing headers?)
...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];
CMBlockBufferCopyDataBytes(blockBufferRef, 0, blockBufferDataLength, allSamplesMutableData.mutableBytes); // copying bytes to object
int nextSampleStartPosition = 0;
for (int i = 0; i < numberOfSamples; i++) {
NSData...