Displaying 4 results from an estimated 4 matches for "_intermediatesamplebuffer".
2013 Feb 12
0
Speexdec says: 'This doesn't look like a Speex file' (am I missing headers?)
...Position = 0;
for (int i = 0; i < numberOfSamples; i++) {
NSData *singleSampleData = [NSData
dataWithBytes:[[allSamplesMutableData subdataWithRange:NSMakeRange(
nextSampleStartPosition, sampleSize)] bytes] length:sampleSize];
nextSampleStartPosition += sampleSize;
[_intermediateSampleBuffer addObject:singleSampleData]; // we put
samples here until it's enough for the frame
if (_intermediateSampleBuffer.count == samplesPerFrame) {
speex_bits_reset(&bits);
short samplesArray[samplesPerFrame]; // c-array which will get
samples from _intermediateS...
2013 Feb 12
0
Speexdec says: 'This doesn't look like a Speex file' (am I missing headers?).
...n = 0;
for (int i = 0; i < numberOfSamples; i++) {
NSData *singleSampleData = [NSData dataWithBytes:[[allSamplesMutableData subdataWithRange:NSMakeRange(nextSampleStartPosition, sampleSize)] bytes] length:sampleSize];
nextSampleStartPosition += sampleSize;
[_intermediateSampleBuffer addObject:singleSampleData]; // we put samples here until it's enough for the frame
if (_intermediateSampleBuffer.count == samplesPerFrame) {
speex_bits_reset(&bits);
short samplesArray[samplesPerFrame]; // c-array which will get samples from _intermediateS...
2013 Feb 12
0
Speexdec says: 'This doesn't look like a Speex file' (am I missing headers?).
...Position = 0;
for (int i = 0; i < numberOfSamples; i++) {
NSData *singleSampleData = [NSData
dataWithBytes:[[allSamplesMutableData subdataWithRange:NSMakeRange(
nextSampleStartPosition, sampleSize)] bytes] length:sampleSize];
nextSampleStartPosition += sampleSize;
[_intermediateSampleBuffer addObject:singleSampleData]; // we put
samples here until it's enough for the frame
if (_intermediateSampleBuffer.count == samplesPerFrame) {
speex_bits_reset(&bits);
short samplesArray[samplesPerFrame]; // c-array which will get
samples from _intermediateS...
2013 Feb 12
0
Speexdec says: 'This doesn't look like a Speex file' (am I missing headers?)
...n = 0;
for (int i = 0; i < numberOfSamples; i++) {
NSData *singleSampleData = [NSData dataWithBytes:[[allSamplesMutableData subdataWithRange:NSMakeRange(nextSampleStartPosition, sampleSize)] bytes] length:sampleSize];
nextSampleStartPosition += sampleSize;
[_intermediateSampleBuffer addObject:singleSampleData]; // we put samples here until it's enough for the frame
if (_intermediateSampleBuffer.count == samplesPerFrame) {
speex_bits_reset(&bits);
short samplesArray[samplesPerFrame]; // c-array which will get samples from _intermediateS...