// Token: 0x060026F5 RID: 9973 RVA: 0x000A9A6C File Offset: 0x000A7C6C
 public static uint EmitSoundLocal(AkEventIdArg akEventId, GameObject gameObject)
 {
     if (akEventId == 0U)
     {
         return(0U);
     }
     return(AkSoundEngine.PostEvent(akEventId, gameObject));
 }
示例#2
0
        // Token: 0x06002721 RID: 10017 RVA: 0x000AA0B4 File Offset: 0x000A82B4
        public static uint EmitSoundLocal(AkEventIdArg akEventId, Vector3 position)
        {
            if (RoR2Application.noAudio || akEventId == 0U)
            {
                return(0U);
            }
            AkGameObj akGameObj = PointSoundManager.RequestEmitter();

            akGameObj.transform.position = position;
            return(AkSoundEngine.PostEvent(akEventId, akGameObj.gameObject, 1U, new AkCallbackManager.EventCallback(PointSoundManager.Callback), akGameObj));
        }
        // Token: 0x060026F6 RID: 9974 RVA: 0x000A9A84 File Offset: 0x000A7C84
        public static void EmitSoundServer(AkEventIdArg akEventId, GameObject gameObject)
        {
            NetworkSoundEventIndex networkSoundEventIndex = NetworkSoundEventCatalog.FindNetworkSoundEventIndex(akEventId);

            if (networkSoundEventIndex == NetworkSoundEventIndex.Invalid)
            {
                Debug.LogWarningFormat("Cannot emit sound \"{0}\" on object \"{1}\": Event is not registered in NetworkSoundEventCatalog.", new object[]
                {
                    akEventId.id,
                    gameObject
                });
                return;
            }
            EntitySoundManager.EmitSoundServer(networkSoundEventIndex, gameObject);
        }