search for: numberofbuffers

Displaying 1 result from an estimated 1 matches for "numberofbuffers".

2013 May 27
1
Empty buffer on encoder write byte
...load to 2048, application mode as VoIP, and complexity to 5. The following is a snippet in ObjC where I did the encoding: self.inputReceiver = [AEBlockAudioReceiver audioReceiverWithBlock:^(void *source, const AudioTimeStamp *time, UInt32 frames, AudioBufferList *bufferList) { UInt32 numberOfBuffers = bufferList->mNumberBuffers; for (int bufferIndex = 0; bufferIndex < numberOfBuffers ; ++bufferIndex) { AudioBuffer audioBuffer = bufferList->mBuffers[bufferIndex]; int frameSize = (samplingRate/1000) * sampleDuration; // sampling rate is 8000, sample dur...