8#ifndef zego_api_audio_player_h
9#define zego_api_audio_player_h
27 virtual void OnPlayEffect(
unsigned int nSoundID,
int nErrorCode) {};
Definition: zego-api-audio-player.h:19
virtual void OnPreloadComplete(unsigned int nSoundID)
Definition: zego-api-audio-player.h:49
virtual void OnPreloadEffect(unsigned int nSoundID, int nErrorCode)
Definition: zego-api-audio-player.h:42
virtual void OnPlayEffect(unsigned int nSoundID, int nErrorCode)
Definition: zego-api-audio-player.h:27
virtual void OnPlayEnd(unsigned int nSoundID)
Definition: zego-api-audio-player.h:34
ZEGOAVKIT_API void SetPublishVolumeAll(int nVolume)
ZEGOAVKIT_API void ResumeAll()
ZEGOAVKIT_API void PauseEffect(unsigned int nSoundID)
ZEGOAVKIT_API void SetVolumeAll(int nVolume)
ZEGOAVKIT_API void ResumeEffect(unsigned int nSoundID)
ZEGOAVKIT_API long GetDuration(unsigned int nSoundID)
ZEGOAVKIT_API void DestroyAudioPlayer()
ZEGOAVKIT_API long GetCurrentDuration(unsigned int nSoundID)
ZEGOAVKIT_API void StopEffect(unsigned int nSoundID)
ZEGOAVKIT_API bool SetAudioPlayerCallback(IZegoAudioPlayerCallback *pCallback)
ZEGOAVKIT_API void SetPlaySpeed(unsigned int nSoundID, float speed)
ZEGOAVKIT_API void SetPlayVolumeAll(int nVolume)
ZEGOAVKIT_API void UpdatePosition(unsigned int nSoundID, const float position[3])
更新音效播放器(音频源)位置
ZEGOAVKIT_API void PreloadEffect(const char *pszPath, unsigned int nSoundID)
ZEGOAVKIT_API void PlayEffect(const char *pszPath, unsigned int nSoundID, int nLoopCount, bool bPublish)
ZEGOAVKIT_API void SetVolume(unsigned int nSoundID, int nVolume)
ZEGOAVKIT_API void UnloadEffect(unsigned int nSoundID)
ZEGOAVKIT_API void CreateAudioPlayer()
ZEGOAVKIT_API void SetPlayVolume(unsigned int nSoundID, int nVolume)
ZEGOAVKIT_API void SetPublishVolume(unsigned int nSoundID, int nVolume)
ZEGOAVKIT_API void PauseAll()
ZEGOAVKIT_API void StopAll()
ZEGOAVKIT_API int SeekTo(unsigned int nSoundID, long timestamp)
Definition: AVDefines.h:17
#define ZEGOAVKIT_API
Definition: zego-api-defines.h:59