search for: payloadlength

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

2013 May 27
1
Empty buffer on encoder write byte
...izeof(opus_int16); __block opus_int16 *pcmInput = calloc(count, sizeof(opus_int16)); memcpy(pcmInput, audioBuffer.mData, count * sizeof(opus_int16)); [_encoder encodeWithPCMInput:pcmInput frameSize:frameSize outputBlock:^(unsigned char *payloadOutput, opus_int32 payloadLength) { // Send the audio data through UDP socket. NSData *audioData = [NSData dataWithBytes:payloadOutput length:payloadLength]; [_socket sendData:audioData toHost:RTC_SERVER_HOST port:RTC_MEDIA_SERVER_PORT withTimeout:PACKET_TIMEOUT tag:AUDIO_DATA_TAG];...