버전
menu
GME 서비스 전에 먼저 호출해야 하는 몇 가지 특정 API가 있습니다. 노출된 C# 레이어 API는 Assets\GMESDK\GMEWWisePluginNative.cs
파일에서 정의됩니다. 게임의 C# 코드는 이러한 API를 직접 호출합니다. 각 함수에 대한 설명은 GME In-Game Voice Chat API 사용하기 섹션을 참고해 주세요.
public static extern IntPtr GMEWWisePlugin_GetVersion(); public static extern void GMEWWisePlugin_SetUserID(string userID); public static extern void GMEWWisePlugin_SetRoomID(string roomID); public static extern void GMEWWisePlugin_ReceivePlugin_SetReceiveOpenIDWithGameObjectID( ulong gameObjectID, string userID); public static extern void GMEWWisePlugin_ReceivePlugin_GetReceiveOpenIDWithGameObjectID( ulong gameObjectID, StringBuilder userID); public static extern void GMEWWisePlugin_SendPlugin_EnableLoopbackWithGameObjectID( ulong gameObjectID, bool enableLoopback); public static extern bool GMEWWisePlugin_SendPlugin_GetEnableLoopbackWithGameObjectID( ulong gameObjectID); public static extern int GMEWWisePlugin_GetMessage( ref int localUTCTime, ref int messageType, ref int code, byte[] message1, int len1 byte[] message2, int len2); public static extern void GMEWWisePlugin_SetLogLevel(int logLevel); public static extern void GMEWWisePlugin_Pause(); public static extern void GMEWWisePlugin_Resume(); public static extern void GMEWWisePlugin_AddAudioBlockList(string targetID); public static extern void GMEWWisePlugin_RemoveAudioBlockList(string targetID); public static extern void GMEWWisePlugin_SetRangeAudioTeamID(int teamID); public static extern void GMEWWisePlugin_SetRangeAudioTeamMode(int teamMode); public static extern void GMEWWisePlugin_SetRangeAudioRecvRange(int range); public static extern void GMEWWisePlugin_SetSelfPosition( int positionX, int positionY, int positionZ); public static extern int GMEWWisePlugin_StartRecording(string speechLanguage); public static extern int GMEWWisePlugin_StopRecording(); public static extern int GMEWWisePlugin_PlayRecordFile(string fileid); public static extern int GMEWWisePlugin_StopPlayFile(); public static extern int GMEWWisePlugin_SpeechToText( string fileid, string speechLanguage, string translateLanguage); public static extern int GMEWWisePlugin_GetVoiceFileDuration(string fileid); public static extern void GMEWWisePlugin_SetRegion(int region); public static extern int GMEWWisePlugin_SetServerAudioRoute(int sendType, string sendList, int recvType, string recvList); public static extern int GMEWWisePlugin_GetServerAudioRoute(ref int sendType, byte[] sendListBuf, int sendListBufLen, ref int recvType, byte[] recvListBuf, int recvListBufLen); public static extern int GMEWWisePlugin_GetMicCount(); public static extern void GMEWWisePlugin_GetMicList([Out] DEV_INFO[] micList, int count); public static extern void GMEWWisePlugin_SelectMicDevice(int micId); public static extern int GMEWWisePlugin_GetCurrentMicDeviceInfo(out DEV_INFO pInfo);
프로젝트를 등록하세요. 아무런 조건이나 의무 사항 없이 빠른 시작을 도와드리겠습니다.
Wwise를 시작해 보세요