GetPlayingIDsFromGameObject() public static method

public static GetPlayingIDsFromGameObject ( UnityEngine in_GameObjId, uint &io_ruNumIDs, uint out_aPlayingIDs ) : AKRESULT
in_GameObjId UnityEngine
io_ruNumIDs uint
out_aPlayingIDs uint
return AKRESULT
Ejemplo n.º 1
0
    public static bool isPlaying(GameObject emmit)
    {
        uint num = 3u;

        AkSoundEngine.GetPlayingIDsFromGameObject(emmit, ref num, AudioMgr.playingids);
        return(AudioMgr.playingids != null && num > 0u);
    }
Ejemplo n.º 2
0
        static bool IsEventPlayingOnGameObject(uint eventID, GameObject go)
        {
            uint testEventId = eventID;

            uint     count  = (uint)playingIds.Length;
            AKRESULT result = AkSoundEngine.GetPlayingIDsFromGameObject(go, ref count, playingIds);

            for (int i = 0; i < count; i++)
            {
                uint playingId = playingIds[i];
                uint eventId   = AkSoundEngine.GetEventIDFromPlayingID(playingId);

                if (eventId == testEventId)
                {
                    return(true);
                }
            }

            return(false);
        }