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)); } }
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); }
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); }
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); }
public RESULT getCommandCount(out int count) { return(CommandReplay.FMOD_Studio_CommandReplay_GetCommandCount(this.rawPtr, out count)); }
public RESULT setFrameCallback(COMMANDREPLAY_FRAME_CALLBACK callback) { return(CommandReplay.FMOD_Studio_CommandReplay_SetFrameCallback(this.rawPtr, callback)); }
protected override bool isValidInternal() { return(CommandReplay.FMOD_Studio_CommandReplay_IsValid(this.rawPtr)); }
public RESULT getLength(out float totalTime) { return(CommandReplay.FMOD_Studio_CommandReplay_GetLength(this.rawPtr, out totalTime)); }
public RESULT seekToCommand(int commandIndex) { return(CommandReplay.FMOD_Studio_CommandReplay_SeekToCommand(this.rawPtr, commandIndex)); }
public RESULT setUserData(IntPtr userData) { return(CommandReplay.FMOD_Studio_CommandReplay_SetUserData(this.rawPtr, userData)); }
public RESULT setBankPath(string bankPath) { return(CommandReplay.FMOD_Studio_CommandReplay_SetBankPath(this.rawPtr, Encoding.UTF8.GetBytes(bankPath + '\0'))); }
public RESULT seekToTime(float time) { return(CommandReplay.FMOD_Studio_CommandReplay_SeekToTime(this.rawPtr, time)); }
public RESULT getPaused(out bool paused) { return(CommandReplay.FMOD_Studio_CommandReplay_GetPaused(this.rawPtr, out paused)); }
public RESULT release() { return(CommandReplay.FMOD_Studio_CommandReplay_Release(this.rawPtr)); }
public RESULT getCurrentCommand(out int commandIndex, out float currentTime) { return(CommandReplay.FMOD_Studio_CommandReplay_GetCurrentCommand(this.rawPtr, out commandIndex, out currentTime)); }
public RESULT setPaused(bool paused) { return(CommandReplay.FMOD_Studio_CommandReplay_SetPaused(this.rawPtr, paused)); }
public RESULT getPlaybackState(out PLAYBACK_STATE state) { return(CommandReplay.FMOD_Studio_CommandReplay_GetPlaybackState(this.rawPtr, out state)); }
public RESULT getCommandAtTime(float time, out int commandIndex) { return(CommandReplay.FMOD_Studio_CommandReplay_GetCommandAtTime(this.rawPtr, time, out commandIndex)); }
public RESULT setLoadBankCallback(COMMANDREPLAY_LOAD_BANK_CALLBACK callback) { return(CommandReplay.FMOD_Studio_CommandReplay_SetLoadBankCallback(this.rawPtr, callback)); }
public RESULT stop() { return(CommandReplay.FMOD_Studio_CommandReplay_Stop(this.rawPtr)); }
public RESULT setCreateInstanceCallback(COMMANDREPLAY_CREATE_INSTANCE_CALLBACK callback) { return(CommandReplay.FMOD_Studio_CommandReplay_SetCreateInstanceCallback(this.rawPtr, callback)); }
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; }
public RESULT getUserData(out IntPtr userData) { return(CommandReplay.FMOD_Studio_CommandReplay_GetUserData(this.rawPtr, out userData)); }