Displaying 1 result from an estimated 1 matches for "bufferindex".
Did you mean:
bufferidx
2013 May 27
1
Empty buffer on encoder write byte
...ollowing 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 duration is 20ms
size_t count = frameSize*channels / s...