ZegoLiveRoom
zego-api-sound-level.h
Go to the documentation of this file.
1#ifndef zego_api_sound_level_h
2#define zego_api_sound_level_h
3
4#include "zego-api-defines.h"
5
6namespace ZEGO
7{
8 namespace SOUNDLEVEL
9 {
10
15 {
20 {
21 szStreamID[0] = '\0';
22 soundLevel = 0.0f;
23 vad = 0;
24 }
25
37 int vad;
38 };
39
41 {
42 public:
49 virtual void OnSoundLevelUpdate(ZegoSoundLevelInfo *pSoundLevelList, unsigned int soundLevelCount) = 0;
50
56 virtual void OnCaptureSoundLevelUpdate(ZegoSoundLevelInfo *pCaptureSoundLevel) = 0;
57
59 };
60
68
75 ZEGOAVKIT_API bool SetSoundLevelMonitorCycle(unsigned int timeInMS);
76
85
92
100
101 }
102}
103
104#endif /* zego_api_sound_level_h */
Definition: zego-api-sound-level.h:41
virtual void OnCaptureSoundLevelUpdate(ZegoSoundLevelInfo *pCaptureSoundLevel)=0
virtual void OnSoundLevelUpdate(ZegoSoundLevelInfo *pSoundLevelList, unsigned int soundLevelCount)=0
ZEGOAVKIT_API bool SetSoundLevelMonitorCycle(unsigned int timeInMS)
ZEGOAVKIT_API bool EnableVADMonitor(bool enable)
ZEGOAVKIT_API bool StopSoundLevelMonitor()
ZEGOAVKIT_API bool SetSoundLevelCallback(IZegoSoundLevelCallback *pCB)
ZEGOAVKIT_API bool StartSoundLevelMonitor()
Definition: AVDefines.h:17
Definition: zego-api-sound-level.h:15
int vad
Definition: zego-api-sound-level.h:37
ZegoSoundLevelInfo()
Definition: zego-api-sound-level.h:19
float soundLevel
Definition: zego-api-sound-level.h:33
char szStreamID[ZEGO_MAX_COMMON_LEN]
Definition: zego-api-sound-level.h:29
#define ZEGO_MAX_COMMON_LEN
Definition: zego-api-defines.h:11
#define ZEGOAVKIT_API
Definition: zego-api-defines.h:56