![]() |
Intel® Collaboration Suite for WebRTC
version 4.3.1
Open WebRTC Toolkit (OWT) Client SDK for Windows*
|
frame generator interface for audio More...
#include <owt/base/framegeneratorinterface.h>
Public Member Functions | |
virtual uint32_t | GenerateFramesForNext10Ms (uint8_t *buffer, const uint32_t capacity)=0 |
Generate frames for next 10ms. More... | |
virtual int | GetSampleRate ()=0 |
Get sample rate for frames generated. | |
virtual int | GetChannelNumber ()=0 |
Get numbers of channel for frames generated. | |
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.
|
pure virtual |
Generate frames for next 10ms.
buffer | Points 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|. |
capacity | Buffer's capacity. It will be equal or greater to expected frame buffer size. |