12#include <TargetConditionals.h>
15#ifndef ZegoAVCallback_h
35 virtual void OnAudioRecordCallback(
const unsigned char *pData,
int data_len,
int sample_rate,
int num_channels,
int bit_depth,
unsigned int type) {}
42 virtual void OnAudioRecordCallback(
const unsigned char *pData,
int data_len,
int sample_rate,
int num_channels,
int bit_depth) {}
68#if defined(_WIN32) || TARGET_OS_OSX || defined(LINUX)
95 virtual void OnAudioVolumeChanged(
AudioDeviceType deviceType,
const char *deviceId,
VolumeType volumeType,
unsigned int volume,
bool bMuted) {}
103 virtual void OnAudioDefaultDeviceStateChanged(
AudioDeviceType deviceType,
const char* deviceId) {}
122 virtual void OnDeviceError(
const char* deviceName,
int errorCode,
const char* deviceID) {}
130 virtual void OnRetryDevice(
const char* deviceName,
const char* deviceID) {}
134#if TARGET_OS_IPHONE || defined(ANDROID) || defined(_OS_OHOS_)
135 class IZegoAudioRouteCallback
138 virtual ~IZegoAudioRouteCallback(){}
Definition: AVDefines.h:21
virtual void OnAudioRecordCallback(const unsigned char *pData, int data_len, int sample_rate, int num_channels, int bit_depth, unsigned int type)
Definition: AVDefines.h:35
virtual void OnAudioRecordCallback(const unsigned char *pData, int data_len, int sample_rate, int num_channels, int bit_depth)
Definition: AVDefines.h:42
Definition: AVDefines.h:240
virtual void OnPcmAudioData(const unsigned char *data, int len, int sampaleRate, int channel)=0
音频前处理前的 PCM 格式音频数据
Definition: AVDefines.h:187
virtual void OnCapturedAudioVADStateUpdate(AudioVADType state)=0
virtual void OnAudioPrepVADStateUpdate(AudioVADType state)=0
Definition: AVDefines.h:66
virtual void OnDeviceError(const char *deviceName, int errorCode)
Definition: AVDefines.h:112
virtual void OnDeviceError(const char *deviceName, int errorCode, const char *deviceID)
Definition: AVDefines.h:122
Definition: AVDefines.h:208
virtual void OnRequestDumpData()=0
virtual void OnStartDumpData(int error)=0
virtual void OnStopDumpData(int error, const char *dump_dir)=0
virtual void OnRequestUploadDumpData(const char *dump_dir, bool take_photo)=0
virtual void OnUploadDumpData(int error)=0
Definition: AVDefines.h:46
virtual void OnAVKitEvent(int event, EventInfo *pInfo)=0
virtual void OnStreamEvent(ZegoStreamEventType event, const char *streamID, ZegoStreamEventExtraInfo *extraInfo)
Definition: AVDefines.h:62
Definition: AVDefines.h:147
virtual void OnNetTypeChange(ZEGONetType netType)=0
网络类型发生变化的回调
virtual ~IZegoNetTypeCallback()
Definition: AVDefines.h:149
Definition: AVDefines.h:161
virtual void OnSendRealtimeSequentialData(int seq, int errorCode)
Definition: AVDefines.h:170
virtual void OnRecvRealtimeSequentialData(const unsigned char *userData, int dataLen, const char *streamID)=0
ZegoStreamEventType
Definition: zego-api-defines.h:638
DeviceState
Definition: zego-api-defines.h:145
ZEGONetType
Definition: zego-api-defines.h:257
ZegoAudioRoute
Definition: zego-api-defines.h:1211
VolumeType
Definition: zego-api-defines.h:157
AudioDeviceType
Definition: zego-api-defines.h:111
AudioVADType
Definition: zego-api-defines.h:1359
Definition: AVDefines.h:17
Definition: zego-api-defines.h:122
Definition: zego-api-defines.h:594