Agora C++ API Reference for All Platforms

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

`#include <NGIAgoraAudioTrack.h>`

## Public Member Functions
virtual | ~ILocalAudioTrackObserver ()
virtual void | onLocalAudioTrackStateChanged (LOCAL_AUDIO_STREAM_STATE state, LOCAL_AUDIO_STREAM_REASON reasonCode)=0

## Detailed Description

The observer of the local audio track.

## Constructor & Destructor Documentation

## ◆ ~ILocalAudioTrackObserver()

virtual agora::rtc::ILocalAudioTrackObserver::~ILocalAudioTrackObserver | ( |  | ) |
| inline virtual

## Member Function Documentation

## ◆ onLocalAudioTrackStateChanged()

virtual void agora::rtc::ILocalAudioTrackObserver::onLocalAudioTrackStateChanged | ( | LOCAL_AUDIO_STREAM_STATE | state,
|  | LOCAL_AUDIO_STREAM_REASON | reasonCode )
| pure virtual

Occurs when the state of a local audio track changes.

Parameters

  state | The state of the local audio track.
  reasonCode | The error information for a state failure: LOCAL_AUDIO_STREAM_REASON.