Displaying 1 result from an estimated 1 matches for "sourcebuff".
Did you mean:
  source_buf
  
2012 Sep 30
0
Speex (in ios) really poor quality (and robotic) sound
...ex_decode_int(dec_state, &bits_out, outTemp);
        return outTemp;
    }
And at last, the function that call speex encode & decode and copy it to the buffer that will be playback by the specific callback : 
    - (void) processAudio: (AudioBufferList*) bufferList
    {
    	AudioBuffer sourceBuffer = bufferList->mBuffers[0];
        
        NSLog(@"Origin size: %lu", sourceBuffer.mDataByteSize);
        int size = 0;
        char *encodedAudio = encodeSpeex((spx_int16_t*) sourceBuffer.mData, sourceBuffer.mDataByteSize, &size);
        NSLog(@"Encoded size: %i", s...