Inheritance: HandleBase
Ejemplo n.º 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));
     }
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 6
0
 public RESULT getCommandCount(out int count)
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_GetCommandCount(this.rawPtr, out count));
 }
Ejemplo n.º 7
0
 public RESULT setFrameCallback(COMMANDREPLAY_FRAME_CALLBACK callback)
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_SetFrameCallback(this.rawPtr, callback));
 }
Ejemplo n.º 8
0
 protected override bool isValidInternal()
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_IsValid(this.rawPtr));
 }
Ejemplo n.º 9
0
 public RESULT getLength(out float totalTime)
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_GetLength(this.rawPtr, out totalTime));
 }
Ejemplo n.º 10
0
 public RESULT seekToCommand(int commandIndex)
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_SeekToCommand(this.rawPtr, commandIndex));
 }
Ejemplo n.º 11
0
 public RESULT setUserData(IntPtr userData)
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_SetUserData(this.rawPtr, userData));
 }
Ejemplo n.º 12
0
 public RESULT setBankPath(string bankPath)
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_SetBankPath(this.rawPtr, Encoding.UTF8.GetBytes(bankPath + '\0')));
 }
Ejemplo n.º 13
0
 public RESULT seekToTime(float time)
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_SeekToTime(this.rawPtr, time));
 }
Ejemplo n.º 14
0
 public RESULT getPaused(out bool paused)
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_GetPaused(this.rawPtr, out paused));
 }
Ejemplo n.º 15
0
 public RESULT release()
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_Release(this.rawPtr));
 }
Ejemplo n.º 16
0
 public RESULT getCurrentCommand(out int commandIndex, out float currentTime)
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_GetCurrentCommand(this.rawPtr, out commandIndex, out currentTime));
 }
Ejemplo n.º 17
0
 public RESULT setPaused(bool paused)
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_SetPaused(this.rawPtr, paused));
 }
Ejemplo n.º 18
0
 public RESULT getPlaybackState(out PLAYBACK_STATE state)
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_GetPlaybackState(this.rawPtr, out state));
 }
Ejemplo n.º 19
0
 public RESULT getCommandAtTime(float time, out int commandIndex)
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_GetCommandAtTime(this.rawPtr, time, out commandIndex));
 }
Ejemplo n.º 20
0
 public RESULT setLoadBankCallback(COMMANDREPLAY_LOAD_BANK_CALLBACK callback)
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_SetLoadBankCallback(this.rawPtr, callback));
 }
Ejemplo n.º 21
0
 public RESULT stop()
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_Stop(this.rawPtr));
 }
Ejemplo n.º 22
0
 public RESULT setCreateInstanceCallback(COMMANDREPLAY_CREATE_INSTANCE_CALLBACK callback)
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_SetCreateInstanceCallback(this.rawPtr, callback));
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 24
0
 public RESULT getUserData(out IntPtr userData)
 {
     return(CommandReplay.FMOD_Studio_CommandReplay_GetUserData(this.rawPtr, out userData));
 }