Agora C++ API Reference for All Platforms
|
Inherits agora::RefCountInterface.
Public Member Functions | |
virtual bool | sendEncodedAudioFrame (const uint8_t *payload_data, size_t payload_size, const EncodedAudioFrameInfo &audioFrameInfo)=0 |
![]() | |
virtual void | AddRef () const =0 |
virtual RefCountReleaseStatus | Release () const =0 |
virtual bool | HasOneRef () const =0 |
Protected Member Functions | |
~IAudioEncodedFrameSender () | |
![]() | |
virtual | ~RefCountInterface () |
The IAudioEncodedFrameSender
class.
In scenarios involving custom audio source, you can use the IAudioEncodedFrameSender
class to send encoded audio data directly to the audio track. If the track is disabled, the sent audio data will be automatically discarded.
|
inlineprotected |
|
pure virtual |
Sends the encoded audio frame to the local audio track.
payload_data | The pointer to the payload data. |
payload_size | The payload size. |
audioFrameInfo | The reference to the information of the audio frame: EncodedAudioFrameInfo. |
true
: Success.false
: Failure.