Unreal Engine SDK V5.4.128
载入中...
搜索中...
未找到
INertcEngineEx.h
浏览该文件的文档.
1
7#pragma once
8#include "NertcBase.h"
9#include "INertcEngine.h"
10#include "INertcChannel.h"
12#include "INertcVoiceEngine.h"
13#include <string>
14
15namespace nertc {
16
18public:
19 virtual ~IRtcEngineEx(){}
20
38 virtual IRtcChannel* createChannel(const char* channel_name) = 0;
50
90virtual int muteLocalAudioStream(NERtcAudioStreamType type, bool mute) = 0;
118
147
170
197virtual int setLocalVoicePitch(double pitch) = 0;
198
222virtual int setLocalVoiceEqualization(NERtcVoiceEqualizationBand band_frequency, int band_gain) = 0;
223
255virtual int subscribeRemoteAudioStream(NERtcAudioStreamType stream_type, uid_t uid, bool subscribe) = 0;
256
307virtual int subscribeAllRemoteAudioStream(bool subscribe) = 0;
308
323virtual int setPublishAudioAllowList(uid_t* uid_array, uint32_t size) = 0;
324
339virtual int setSubscribeAudioAllowList(uid_t* uid_array, uint32_t size) = 0;
340
355virtual int setSubscribeAudioBlockList(uid_t* uid_array, uint32_t size) = 0;
356
384
397virtual int setAudioFocusMode(NERtcAudioFocusMode focus_mode) = 0;
410virtual int setPlayoutDeviceMute(bool muted) = 0;
411
424virtual int getPlayoutDeviceMute(bool* muted) = 0;
425
443virtual int setParameters(const char* parameters) = 0;
444
485virtual int startAudioDump(NERtcAudioDumpType type) = 0;
500virtual int stopAudioDump() = 0;
501
508virtual int setLoudspeakerMode( bool enable) = 0;
509
518virtual int getLoudspeakerMode(bool* enabled) = 0;
519
536virtual int setStatsObserver(IRtcMediaStatsObserver* observer) = 0;
537
567virtual int enableAudioVolumeIndication(bool enable, uint64_t interval, bool enable_vad) = 0;
568
582virtual const char* getVersion(int* build) = 0;
598virtual const char* getErrorDescription(int error_code) = 0;
613virtual void uploadSdkInfo() = 0;
639virtual int adjustRecordingSignalVolume(int volume) = 0;
665virtual int adjustPlaybackSignalVolume(int volume) = 0;
666
667
706virtual int enableMediaPublish(bool enabled, NERtcMediaPubType media_type) = 0;
707
715
722virtual int setRangeAudioTeamID(int32_t team_id) = 0;
723
735virtual int setAudioRecvRange(int audible_distance, int conversational_distance, NERtcDistanceRolloffModel roll_off) = 0;
747virtual int updateSelfPosition(const NERtcPositionInfo& info) = 0;
748
756virtual int initSpatializer() = 0;
757
766virtual int enableSpatializer(bool enable) = 0;
767
772virtual int getMicrophoneMode(bool* enabled) = 0;
773
778virtual int getRecordingSignalVolume() = 0;
779
784virtual int getPlaybackSignalVolume() = 0;
785
790virtual bool checkMicPermision() = 0;
791
798virtual int pauseAudio() = 0;
805virtual int resumeAudio() = 0;
813virtual bool isInChannel() = 0;
818};
819
834}
#define NERTC_UE_API
定义 NertcBase.h:23
#define NERTC_UE_CALL
定义 NertcBase.h:24
定义 NertcEngineDefines.h:4449
定义 INertcChannel.h:34
定义 INertcEngineEx.h:17
virtual int setRangeAudioMode(NERtcRangeAudioMode mode)=0
virtual int setPublishAudioAllowList(uid_t *uid_array, uint32_t size)=0
virtual int enableSpatializer(bool enable)=0
virtual int setAudioSessionOperationRestriction(NERtcAudioSessionOperationRestriction restriction)=0
virtual int pauseAudio()=0
virtual NERtcConnectionStateType getConnectionState()=0
virtual IRtcVoiceEngine * getVoiceEngine()=0
virtual int setSubscribeAudioAllowList(uid_t *uid_array, uint32_t size)=0
virtual int adjustPlaybackSignalVolume(int volume)=0
virtual int setAudioProfile(NERtcAudioProfileType profile, NERtcAudioScenarioType scenario)=0
virtual ~IRtcEngineEx()
定义 INertcEngineEx.h:19
virtual int initSpatializer()=0
virtual int setParameters(const char *parameters)=0
virtual int setPlayoutDeviceMute(bool muted)=0
virtual int setStatsObserver(IRtcMediaStatsObserver *observer)=0
virtual int setRangeAudioTeamID(int32_t team_id)=0
virtual int startAudioDump(NERtcAudioDumpType type)=0
virtual int subscribeAllRemoteAudioStream(bool subscribe)=0
virtual void uploadSdkInfo()=0
virtual const char * getVersion(int *build)=0
virtual int enableMediaPublish(bool enabled, NERtcMediaPubType media_type)=0
virtual IRtcChannel * createChannel(const char *channel_name)=0
virtual int resumeAudio()=0
virtual int getRecordingSignalVolume()=0
virtual int updateSelfPosition(const NERtcPositionInfo &info)=0
virtual int setVoiceBeautifierPreset(NERtcVoiceBeautifierType type)=0
virtual int stopAudioDump()=0
virtual int getPlayoutDeviceMute(bool *muted)=0
virtual int setAudioRecvRange(int audible_distance, int conversational_distance, NERtcDistanceRolloffModel roll_off)=0
virtual bool isInChannel()=0
virtual int setLocalVoicePitch(double pitch)=0
virtual int getMicrophoneMode(bool *enabled)=0
virtual bool checkMicPermision()=0
virtual bool acquireAndroidRecordingPermissions()=0
virtual int setAudioFrameObserver(INERtcAudioFrameObserver *observer)=0
virtual int setAudioFocusMode(NERtcAudioFocusMode focus_mode)=0
virtual int subscribeRemoteAudioStream(NERtcAudioStreamType stream_type, uid_t uid, bool subscribe)=0
virtual int setLoudspeakerMode(bool enable)=0
virtual int setSubscribeAudioBlockList(uid_t *uid_array, uint32_t size)=0
virtual const char * getErrorDescription(int error_code)=0
virtual int setLocalVoiceEqualization(NERtcVoiceEqualizationBand band_frequency, int band_gain)=0
virtual int muteLocalAudioStream(NERtcAudioStreamType type, bool mute)=0
virtual int adjustRecordingSignalVolume(int volume)=0
virtual int getPlaybackSignalVolume()=0
virtual int setAudioEffectPreset(NERtcVoiceChangerType type)=0
virtual int getLoudspeakerMode(bool *enabled)=0
virtual int enableAudioVolumeIndication(bool enable, uint64_t interval, bool enable_vad)=0
定义 INertcEngine.h:98
定义 INertcMediaStatsObserver.h:28
定义 INertcVoiceEngine.h:34
namespace nertc
定义 INertcAudioDeviceManager.h:11
NERtcAudioProfileType
定义 NertcEngineDefines.h:1042
NERtcAudioFocusMode
定义 NertcEngineDefines.h:8201
NERtcVoiceChangerType
定义 NertcEngineDefines.h:1168
NERtcAudioDumpType
定义 NertcEngineDefines.h:6894
NERtcConnectionStateType
定义 NertcEngineDefines.h:2190
NERtcRangeAudioMode
定义 NertcEngineDefines.h:6976
uint64_t uid_t
定义 NertcEngineDefines.h:138
NERtcVoiceEqualizationBand
定义 NertcEngineDefines.h:1379
NERTC_UE_API IRtcEngineEx *NERTC_UE_CALL createNERtcEngine()
NERtcAudioStreamType
定义 NertcEngineDefines.h:3003
NERtcAudioScenarioType
定义 NertcEngineDefines.h:1117
NERtcMediaPubType
定义 NertcEngineDefines.h:7097
NERtcAudioSessionOperationRestriction
定义 NertcEngineDefines.h:8163
NERtcDistanceRolloffModel
定义 NertcEngineDefines.h:7553
NERtcVoiceBeautifierType
定义 NertcEngineDefines.h:1260
定义 NertcEngineDefines.h:7569