Agora C++ API Reference for All Platforms

Loading...
Searching...
No Matches
Public Member Functions | List of all members
agora::media::IAudioPcmFrameSink Class Referenceabstract

`#include <AgoraMediaBase.h>`

## Public Member Functions
virtual void | onFrame (agora::media::base::AudioPcmFrame *frame)=0
virtual | ~IAudioPcmFrameSink ()

## Detailed Description

The audio frame observer.

## Constructor & Destructor Documentation

## ◆ ~IAudioPcmFrameSink()

virtual agora::media::IAudioPcmFrameSink::~IAudioPcmFrameSink | ( |  | ) |
| inline virtual

## Member Function Documentation

## ◆ onFrame()

virtual void agora::media::IAudioPcmFrameSink::onFrame | ( | agora::media::base::AudioPcmFrame * | frame | ) |
| pure virtual

Occurs each time the player receives an audio frame.

After registering the audio frame observer, the callback occurs every time the player receives an audio frame, reporting the detailed information of the audio frame.

Parameters

  frame | The audio frame information. See AudioPcmFrame.