버전
menu

GME C++ API 사용하기

GME 서비스를 사용하기 전에 먼저 특정 API를 호출해야 합니다. 노출된 C++ API 호출은 TencentGMEDevice.h 파일에서 선언됩니다. 이러한 API 호출은 TencentGME_Wwise 모듈에 의존하는 모든 게임에서 사용할 수 있습니다. 각 함수에 대한 설명은 GME In-Game Voice Chat API 사용하기 내용을 참고해 주세요.

class TENCENTGME_WWISE_API FTencentGMEDevice
{
public:
    static FString GetGMEVersion();
    static void SetUserID(const FString& userID);
    static void SetRoomID(const FString& roomID);

    static void ReceivePlugin_SetReceiveOpenIDWithGameObjectID(
        AkGameObjectID gameObjectID, const FString& userID);
    static void ReceivePlugin_GetReceiveOpenIDWithGameObjectID(
        AkGameObjectID gameObjectID, FString& userID);
    static void SendPlugin_EnableLoopbackWithGameObjectID(
        AkGameObjectID gameObjectID, bool enableLoopback);
    static bool SendPlugin_GetEnableLoopbackWithGameObjectID(
        AkGameObjectID gameObjectID);

    static void SetRegion(GMEWWisePlugin_Region region);
    static void SetAudioStreamProfile(GMEWWisePlugin_STREAMPROIFLE profile);
    static void SetLogLevel(
        GMEWWisePlugin_LogLevel logLevelWrite,
        GMEWWisePlugin_LogLevel logLevelPrint);
    static void GMEPause();
    static void GMEResume();
    static int GetAudioSendStreamLevel();
    static int GetAudioRecvStreamLevel(const FString& targetID);
    static void AddAudioBlockList(const FString& targetID);
    static void RemoveAudioBlockList(const FString& targetID);
    static void EnableBluetoothMic(bool enable);

    static void SetRangeAudioTeamID(int teamID);
    static void SetRangeAudioTeamMode(GMEWWisePlugin_TeamMode teamMode);
    static void SetRangeAudioRecvRange(int range);
    static void SetSelfPosition(int positionX, int positionY, int positionZ);

    static int StartRecording(const FString& fileid);
    static int StopRecording();
    static int PlayRecordFile(const FString& fileid);
    static int StopPlayFile();
    static int SpeechToText(
        const FString& fileid,
        const FString& speechLanguage,
        const FString& translateLanguage);
    static int GetVoiceFileDuration(const FString& fileid);

    static int GetMessage(
		int& localUTCTime,
		int& messageType,
		int& code,
		FString& message1,
		FString& message2);
    
    static int SetServerAudioRoute(
        GMEWWisePlugin_AudioRouteMode sendType,
        const FString& sendList,
        GMEWWisePlugin_AudioRouteMode recvType,
        const FString& recvList);
	static int GetServerAudioRoute(
        GMEWWisePlugin_AudioRouteMode& sendType,
        FString& sendListBuf,
        GMEWWisePlugin_AudioRouteMode& recvType,
        FString& recvListBuf);

	static int GetMicCount();
	static void GetMicList(DEV_INFO* name, int count);
	static void SelectMicDevice(int micId);
    static int GetCurrentMicDeviceInfo(DEV_INFO* pInfo);
};

이 페이지가 도움이 되었나요?

지원이 필요하신가요?

질문이 있으신가요? 문제를 겪고 계신가요? 더 많은 정보가 필요하신가요? 저희에게 문의해주시면 도와드리겠습니다!

지원 페이지를 방문해 주세요

작업하는 프로젝트에 대해 알려주세요. 언제든지 도와드릴 준비가 되어 있습니다.

프로젝트를 등록하세요. 아무런 조건이나 의무 사항 없이 빠른 시작을 도와드리겠습니다.

Wwise를 시작해 보세요