Ejemplo n.º 1
0
 public RESULT getCueByIndex(int index, out CueInstance instance)
 {
     instance = null;
     IntPtr raw = 0;
     RESULT rESULT = EventInstance.FMOD_Studio_EventInstance_GetCueByIndex(this.rawPtr, index, out raw);
     if (rESULT != RESULT.OK)
     {
         return rESULT;
     }
     instance = new CueInstance(raw);
     return rESULT;
 }
Ejemplo n.º 2
0
 public RESULT getCue(string name, out CueInstance instance)
 {
     instance = null;
     IntPtr raw = 0;
     RESULT rESULT = EventInstance.FMOD_Studio_EventInstance_GetCue(this.rawPtr, Encoding.UTF8.GetBytes(name + '\0'), out raw);
     if (rESULT != RESULT.OK)
     {
         return rESULT;
     }
     instance = new CueInstance(raw);
     return rESULT;
 }
Ejemplo n.º 3
0
        public RESULT getCueByIndex(int index, out CueInstance instance)
        {
            instance = null;
            IntPtr raw    = 0;
            RESULT rESULT = EventInstance.FMOD_Studio_EventInstance_GetCueByIndex(this.rawPtr, index, out raw);

            if (rESULT != RESULT.OK)
            {
                return(rESULT);
            }
            instance = new CueInstance(raw);
            return(rESULT);
        }
Ejemplo n.º 4
0
        public RESULT getCue(string name, out CueInstance instance)
        {
            instance = null;
            IntPtr raw    = 0;
            RESULT rESULT = EventInstance.FMOD_Studio_EventInstance_GetCue(this.rawPtr, Encoding.UTF8.GetBytes(name + '\0'), out raw);

            if (rESULT != RESULT.OK)
            {
                return(rESULT);
            }
            instance = new CueInstance(raw);
            return(rESULT);
        }
            public RESULT getCue(string name, out CueInstance instance)
            {
                RESULT result         = RESULT.OK;
                IntPtr cueinstanceraw = new IntPtr();

                instance = null;

                try
                {
                    result = FMOD_Studio_EventInstance_GetCue(rawPtr, Encoding.UTF8.GetBytes(name + Char.MinValue), out cueinstanceraw);
                }
                catch
                {
                    result = RESULT.ERR_INVALID_PARAM;
                }
                if (result != RESULT.OK)
                {
                    return(result);
                }
                instance = new CueInstance();
                instance.setRaw(cueinstanceraw);

                return(result);
            }
Ejemplo n.º 6
0
        public RESULT getCueByIndex(int index, out CueInstance instance)
        {
            instance = null;

            IntPtr newPtr = new IntPtr();
            RESULT result = FMOD_Studio_EventInstance_GetCueByIndex(rawPtr, index, out newPtr);
            if (result != RESULT.OK)
            {
                return result;
            }
            instance = new CueInstance(newPtr);

            return result;
        }
Ejemplo n.º 7
0
        public RESULT getCue(string name, out CueInstance instance)
        {
            instance = null;

            IntPtr newPtr = new IntPtr();
            RESULT result = FMOD_Studio_EventInstance_GetCue(rawPtr, Encoding.UTF8.GetBytes(name + Char.MinValue), out newPtr);
            if (result != RESULT.OK)
            {
                return result;
            }
            instance = new CueInstance(newPtr);

            return result;
        }
Ejemplo n.º 8
0
 protected override bool isValidInternal()
 {
     return(CueInstance.FMOD_Studio_CueInstance_IsValid(this.rawPtr));
 }
Ejemplo n.º 9
0
 public RESULT trigger()
 {
     return(CueInstance.FMOD_Studio_CueInstance_Trigger(this.rawPtr));
 }