Inheritance: HandleBase
Example #1
0
        public RESULT getCommandString(int commandIndex, out string description)
        {
            description = null;
            byte[] array = new byte[8];
            RESULT rESULT;

            while (true)
            {
                rESULT = CommandReplay.FMOD_Studio_CommandReplay_GetCommandString(this.rawPtr, commandIndex, array, array.Length);
                if (rESULT != RESULT.ERR_TRUNCATED)
                {
                    break;
                }
                array = new byte[2 * array.Length];
            }
            if (rESULT == RESULT.OK)
            {
                int num = 0;
                while (array[num] != 0)
                {
                    num++;
                }
                description = Encoding.UTF8.GetString(array, 0, num);
            }
            return(rESULT);
        }
 public RESULT loadCommandReplay(string path, COMMANDREPLAY_FLAGS flags, out CommandReplay replay)
 {
     using (StringHelper.ThreadSafeEncoding threadSafeEncoding = StringHelper.GetFreeHelper())
     {
         return(FMOD_Studio_System_LoadCommandReplay(handle, threadSafeEncoding.byteFromStringUTF8(path), flags, out replay.handle));
     }
 }
Example #3
0
        public RESULT loadCommandReplay(string path, COMMANDREPLAY_FLAGS flags, out CommandReplay replay)
        {
            replay = null;
            IntPtr raw    = 0;
            RESULT rESULT = System.FMOD_Studio_System_LoadCommandReplay(this.rawPtr, Encoding.UTF8.GetBytes(path + '\0'), flags, out raw);

            if (rESULT == RESULT.OK)
            {
                replay = new CommandReplay(raw);
            }
            return(rESULT);
        }
Example #4
0
        public RESULT getSystem(out System system)
        {
            system = null;
            IntPtr raw    = 0;
            RESULT rESULT = CommandReplay.FMOD_Studio_CommandReplay_GetSystem(this.rawPtr, out raw);

            if (rESULT == RESULT.OK)
            {
                system = new System(raw);
            }
            return(rESULT);
        }
Example #5
0
        public RESULT getCommandInfo(int commandIndex, out COMMAND_INFO info)
        {
            COMMAND_INFO_INTERNAL cOMMAND_INFO_INTERNAL = default(COMMAND_INFO_INTERNAL);
            RESULT rESULT = CommandReplay.FMOD_Studio_CommandReplay_GetCommandInfo(this.rawPtr, commandIndex, out cOMMAND_INFO_INTERNAL);

            if (rESULT != RESULT.OK)
            {
                info = default(COMMAND_INFO);
                return(rESULT);
            }
            info = cOMMAND_INFO_INTERNAL.createPublic();
            return(rESULT);
        }
Example #6
0
 public RESULT getCommandCount(out int count)
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_GetCommandCount(this.rawPtr, out count));
 }
Example #7
0
 public RESULT setFrameCallback(COMMANDREPLAY_FRAME_CALLBACK callback)
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_SetFrameCallback(this.rawPtr, callback));
 }
Example #8
0
 protected override bool isValidInternal()
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_IsValid(this.rawPtr));
 }
Example #9
0
 public RESULT getLength(out float totalTime)
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_GetLength(this.rawPtr, out totalTime));
 }
Example #10
0
 public RESULT seekToCommand(int commandIndex)
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_SeekToCommand(this.rawPtr, commandIndex));
 }
Example #11
0
 public RESULT setUserData(IntPtr userData)
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_SetUserData(this.rawPtr, userData));
 }
Example #12
0
 public RESULT setBankPath(string bankPath)
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_SetBankPath(this.rawPtr, Encoding.UTF8.GetBytes(bankPath + '\0')));
 }
Example #13
0
 public RESULT seekToTime(float time)
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_SeekToTime(this.rawPtr, time));
 }
Example #14
0
 public RESULT getPaused(out bool paused)
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_GetPaused(this.rawPtr, out paused));
 }
Example #15
0
 public RESULT release()
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_Release(this.rawPtr));
 }
Example #16
0
 public RESULT getCurrentCommand(out int commandIndex, out float currentTime)
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_GetCurrentCommand(this.rawPtr, out commandIndex, out currentTime));
 }
Example #17
0
 public RESULT setPaused(bool paused)
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_SetPaused(this.rawPtr, paused));
 }
Example #18
0
 public RESULT getPlaybackState(out PLAYBACK_STATE state)
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_GetPlaybackState(this.rawPtr, out state));
 }
Example #19
0
 public RESULT getCommandAtTime(float time, out int commandIndex)
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_GetCommandAtTime(this.rawPtr, time, out commandIndex));
 }
Example #20
0
 public RESULT setLoadBankCallback(COMMANDREPLAY_LOAD_BANK_CALLBACK callback)
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_SetLoadBankCallback(this.rawPtr, callback));
 }
Example #21
0
 public RESULT stop()
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_Stop(this.rawPtr));
 }
Example #22
0
 public RESULT setCreateInstanceCallback(COMMANDREPLAY_CREATE_INSTANCE_CALLBACK callback)
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_SetCreateInstanceCallback(this.rawPtr, callback));
 }
Example #23
0
 public RESULT loadCommandReplay(string path, COMMANDREPLAY_FLAGS flags, out CommandReplay replay)
 {
     replay = null;
     IntPtr newPtr = new IntPtr();
     RESULT result = FMOD_Studio_System_LoadCommandReplay(rawPtr, Encoding.UTF8.GetBytes(path + Char.MinValue), flags, out newPtr);
     if (result == RESULT.OK)
     {
         replay = new CommandReplay(newPtr);
     }
     return result;
 }
Example #24
0
 public RESULT getUserData(out IntPtr userData)
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_GetUserData(this.rawPtr, out userData));
 }