Intel® Collaboration Suite for WebRTC  version 4.3.1
Open WebRTC Toolkit (OWT) Client SDK for iOS*
<RTCAudioFrameGeneratorProtocol> Protocol Reference

frame generator interface for audio More...

#import <OWTFrameGeneratorProtocol.h>

Inheritance diagram for <RTCAudioFrameGeneratorProtocol>:
Collaboration diagram for <RTCAudioFrameGeneratorProtocol>:

Instance Methods

(NSUInteger) - framesForNext10Ms:capacity:
 Generate frames for next 10ms. More...
 
(NSUInteger) - sampleRate
 Get sample rate for frames generated.
 
(NSUInteger) - channelNumber
 Get numbers of channel for frames generated.
 

Detailed Description

frame generator interface for audio

Sample rate and channel numbers cannot be changed once the generator is created. Currently, only 16 bit little-endian PCM is supported.

Method Documentation

◆ framesForNext10Ms:capacity:()

- (NSUInteger) framesForNext10Ms: (uint8_t *)  buffer
capacity: (const NSUInteger)  capacity 

Generate frames for next 10ms.

Parameters
bufferPoints to the start address for frame data. The memory is allocated and owned by SDK. Implementations should fill frame data to the memory starts from |buffer|.
capacityBuffer's capacity. It will be equal or greater to expected frame buffer size.
Returns
The size of actually frame buffer size.