
You can hear the 3D sound after enabling it. This function is used to enable or disable the 3D sound effect. Taking Unreal Engine as an example, copy the 3D model file and read the path based on the content of the CopyAllAssetsToExternal function in SampleCode.Taking Unity as an example, we recommend you put the 3D sound effect resource file in the StreamingAssets directory of the project and copy it to the corresponding directory of different platforms based on the content of the copyFileFromAssetsToPersistent function in SampleCode.For SDKs later than v2.8, click here to download (MD5: 3d4d04b3949e267e34ca809e8a0b9243).įor GME SDK release updates, see Product Updates.

The 3D sound effect resource file needs to be downloaded to your local disk, please select one according to the SDK version: Function prototype public abstract int InitSpatializer( string modelPath)Ībsolute path of 3D sound effect resource file You must call this API before using the 3D sound effect, even if you want to enable only the 3D sound effect reception rather than the 3D sound effect playback.

This function is used to initialize the 3D sound effect engine and needs to be called after room entry. The blue part is new integration steps compared with general voice chat for room entry: The 3D sound effect implementation flowchart is as follows. For more information, see Quick Integration of Native SDK, Quick Integration of SDK for Unity, and Quick Integration of SDK for Unreal Engine. You have integrated the GME SDK, including core APIs and voice chat APIs.Activated Voice Chat Service: See Voice Service Activation Guide**.The 3D sound effect feature delivers players a more real and immersive communication and battle experience in battle royale games.Ĭlick here to download the demo and try out the 3D sound effect. With the 3D sound effect, players can expose their direction and position information while speaking, and their voice can change in real time along with the distance. In general voice chat for room entry, the player voice has no 3D sound effects, and players can only have simple interactions with each other.

This document describes how to integrate with and debug GME APIs for 3D sound effects. How to deal with the restrictions of corporate firewall.Quick Integration of SDK for Unreal Engine.
