private static extern RESULT FMOD_EventSystem_GetEventByGUIDString(IntPtr eventsystem, string guid, EVENT_MODE mode, ref IntPtr _event);
 private static extern RESULT FMOD_EventSystem_GetEventBySystemID(IntPtr eventsystem, uint systemid, EVENT_MODE mode, ref IntPtr _event);
        public RESULT getEventBySystemID(uint systemid, EVENT_MODE mode, ref Event _event)
        {
            RESULT result   = RESULT.OK;
            IntPtr eventraw = new IntPtr();
            Event eventnew  = null;

            try
            {
                result = FMOD_EventSystem_GetEventBySystemID(eventsystemraw, systemid, mode, ref eventraw);
            }
            catch
            {
                result = RESULT.ERR_INVALID_PARAM;
            }
            if (result != RESULT.OK)
            {
                return result;
            }

            if (_event == null)
            {
                eventnew = new Event();
                eventnew.setRaw(eventraw);
                _event = eventnew;
            }
            else
            {
                _event.setRaw(eventraw);
            }

            return result;
        }
 private static extern RESULT FMOD_EventSystem_GetEvent(IntPtr eventsystem, string name, EVENT_MODE mode, ref IntPtr _event);
 private static extern RESULT FMOD_EventProject_GetEventByProjectID(IntPtr eventproject, uint projectid, EVENT_MODE mode, ref IntPtr _event);
 private static extern RESULT FMOD_EventProject_LoadSampleData(IntPtr eventproject, ref int eventid_array, int sizeof_eventid_array, IntPtr groupname_array, int sizeof_groupname_array, EVENT_MODE eventmode);
 public RESULT loadSampleData(ref int eventid_array, int sizeof_eventid_array, IntPtr groupname_array, int sizeof_groupname_array, EVENT_MODE eventmode)
 {
     return FMOD_EventProject_LoadSampleData(eventprojectraw, ref eventid_array, sizeof_eventid_array, groupname_array, sizeof_groupname_array, eventmode);
 }
        public RESULT getEventByIndex(int index, EVENT_MODE mode, ref Event _event)
        {
            RESULT result   = RESULT.OK;
            IntPtr eventraw = new IntPtr();
            Event  eventnew = null;

            try
            {
                result = FMOD_EventGroup_GetEventByIndex(eventgroupraw, index, mode, ref eventraw);
            }
            catch
            {
                result = RESULT.ERR_INVALID_PARAM;
            }
            if (result != RESULT.OK)
            {
                return result;
            }

            if (_event == null)
            {
                eventnew = new Event();
                eventnew.setRaw(eventraw);
                _event = eventnew;
            }
            else
            {
                _event.setRaw(eventraw);
            }

            return result;
        }
 private static extern RESULT FMOD_EventGroup_LoadEventData(IntPtr eventgroup, EVENT_RESOURCE resource, EVENT_MODE mode);
        public RESULT getEvent(string name, EVENT_MODE mode, ref Event _event)
        {
            RESULT result   = RESULT.OK;
            IntPtr eventraw = new IntPtr();
            Event  eventnew = null;

            try
            {
                result = FMOD_EventProject_GetEvent(eventprojectraw, name, mode, ref eventraw);
            }
            catch
            {
                result = RESULT.ERR_INVALID_PARAM;
            }
            if (result != RESULT.OK)
            {
                return result;
            }

            if (_event == null)
            {
                eventnew = new Event();
                eventnew.setRaw(eventraw);
                _event = eventnew;
            }
            else
            {
                _event.setRaw(eventraw);
            }

            return result;
        }
 private static extern RESULT FMOD_EventGroup_GetEventByIndex(IntPtr eventgroup, int index, EVENT_MODE mode, ref IntPtr _event);
 private static extern RESULT FMOD_EventGroup_GetEvent(IntPtr eventgroup, string name, EVENT_MODE mode, ref IntPtr _event);
 public RESULT loadEventData(EVENT_RESOURCE resource, EVENT_MODE mode)
 {
     return FMOD_EventGroup_LoadEventData(eventgroupraw, resource, mode);
 }
 public RESULT loadSoundData(EVENT_RESOURCE resource, EVENT_MODE mode)
 {
     return FMOD_MusicSystem_LoadSoundData(musicsystemraw, resource, mode);
 }
 private static extern RESULT FMOD_EventProject_GetEvent(IntPtr eventproject, string name, EVENT_MODE mode, ref IntPtr _event);
 private static extern RESULT FMOD_MusicSystem_LoadSoundData(IntPtr musicsystem, EVENT_RESOURCE resource, EVENT_MODE mode);
 private static extern RESULT FMOD_EventCategory_GetEventByIndex(IntPtr eventcategory, int index, EVENT_MODE mode, ref IntPtr _event);