GetEventIDFromPlayingID() public static method

public static GetEventIDFromPlayingID ( uint in_playingID ) : uint
in_playingID uint
return uint
Ejemplo n.º 1
0
 public static string getPlayingEvent()
 {
     if (AudioMgr.playingids == null || AudioMgr.playingids[0] != 0u)
     {
         uint eventIDFromPlayingID = AkSoundEngine.GetEventIDFromPlayingID(AudioMgr.playingids[0]);
     }
     return(string.Empty);
 }
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);
        }