NERtc Wwise SDK 适配 Unreal Engine V5.4.129
载入中...
搜索中...
未找到
NertcEngine.h
浏览该文件的文档.
1#ifndef NertcEngine_h
2#define NertcEngine_h
3
4#pragma once
5
6#include "CoreMinimal.h"
7#include "AkInclude.h"
8#include "Modules/ModuleManager.h"
9#include "IRtcCallback.h"
10#include "IRtcEngine.h"
11
12namespace nertc {
13namespace wwiseplugin {
15 {
16 public:
18
20 virtual ~NertcEngine();
21
23 protected:
24 virtual void SetCallbacks(IRtcCallback* callback);
27 virtual void InitEngine(RtcEngineContext context);
28 virtual void SetToken(const char* token);
29 virtual void SetChannelName(const char* channelName);
30 virtual void SetUserID(uint64_t userID);
31 virtual void SetParameters(const char* parameters);
32 virtual int CheckMicphonePermision(bool& enabled);
33 virtual void SetSendAuthInfoWithGameObjectID(uint64_t gameObjectID, const char* channelName, const char* token);
34 virtual void SetReceiveAuthInfoWithGameObjectID(uint64_t gameObjectID, const char* channelName, const char* token);
35 virtual void SetReceiveUserIDWithGameObjectID(uint64_t gameObjectID, uint64_t userID);
36 virtual uint64_t GetReceiveUserIDWithGameObjectID(uint64_t gameObjectID);
37 virtual void EnableLoopbackWithGameObjectID(uint64_t gameObjectID, bool enableLoopback);
38 virtual bool GetEnableLoopbackWithGameObjectID(uint64_t gameObjectID);
39 //virtual int SetAudioProfile(RtcAudioProfileType profile);
40 virtual int SetRangeAudioMode(const char* channelName, RtcRangeAudioMode mode);
41 virtual int SetRangeAudioTeamID(const char* channelName, int teamID);
42 virtual int SetAudioRecvRange(const char* channelName, int range);
43 virtual void UpdateSelfPosition(const char* channelName, int positionX, int positionY, int positionZ);
44 virtual int EnableAudioVolumeIndication(const char* channelName, bool enable, uint64_t interval, bool enableVad);
45 virtual int SetPublishAudioAllowList(const char* channelName, uint64_t* uids, int size);
46 virtual int SetSubscribeAudioAllowList(const char* channelName, uint64_t* uids, int size);
47 virtual int SetSubscribeAudioBlockList(const char* channelName, uint64_t* uids, int size);
48 virtual bool InChannel(const char* channelName);
49 virtual int PauseAudio();
50 virtual int ResumeAudio();
51 virtual const char* GetVersion();
53 virtual int StopAudioDump();
54 virtual int Release();
55
56 private:
57 IRtcEngine* _rtcEngineImpl = nullptr;
58 };
59}
60}
61
62#endif /* NertcEngine_h */
#define NERTC_PLUGIN_API
定义 NertcBase.h:19
定义 IAudioDeviceManager.h:17
定义 IRtcCallback.h:15
定义 IRtcEngine.h:18
定义 IVoiceEngine.h:111
定义 NertcEngine.h:15
virtual bool InChannel(const char *channelName)
virtual IAudioDeviceManager * GetAudioDeviceManager()
virtual int StartAudioDump(RtcAudioDumpType type)
virtual int SetRangeAudioMode(const char *channelName, RtcRangeAudioMode mode)
virtual void SetCallbacks(IRtcCallback *callback)
virtual void SetReceiveAuthInfoWithGameObjectID(uint64_t gameObjectID, const char *channelName, const char *token)
virtual int CheckMicphonePermision(bool &enabled)
virtual int SetSubscribeAudioBlockList(const char *channelName, uint64_t *uids, int size)
virtual uint64_t GetReceiveUserIDWithGameObjectID(uint64_t gameObjectID)
virtual int SetRangeAudioTeamID(const char *channelName, int teamID)
virtual const char * GetVersion()
virtual void InitEngine(RtcEngineContext context)
virtual void SetChannelName(const char *channelName)
virtual void SetReceiveUserIDWithGameObjectID(uint64_t gameObjectID, uint64_t userID)
virtual IVoiceEngine * GetVoiceEngine()
virtual int SetPublishAudioAllowList(const char *channelName, uint64_t *uids, int size)
virtual int SetSubscribeAudioAllowList(const char *channelName, uint64_t *uids, int size)
static IRtcEngine * GetInstance()
virtual void SetSendAuthInfoWithGameObjectID(uint64_t gameObjectID, const char *channelName, const char *token)
virtual int EnableAudioVolumeIndication(const char *channelName, bool enable, uint64_t interval, bool enableVad)
virtual void EnableLoopbackWithGameObjectID(uint64_t gameObjectID, bool enableLoopback)
virtual void SetUserID(uint64_t userID)
virtual bool GetEnableLoopbackWithGameObjectID(uint64_t gameObjectID)
virtual void SetParameters(const char *parameters)
virtual int SetAudioRecvRange(const char *channelName, int range)
virtual void UpdateSelfPosition(const char *channelName, int positionX, int positionY, int positionZ)
virtual void SetToken(const char *token)
RtcAudioDumpType
定义 NertcBase.h:728
RtcRangeAudioMode
定义 NertcBase.h:551
定义 IAudioDeviceManager.h:7