internal static unsafe int Invoke(IntPtr obj, EMediaPlayerTrack TrackType) { long *p = stackalloc long[] { 0L, 0L }; byte *b = (byte *)p; *(b + 0) = (byte)TrackType; Main.GetProcessEvent(obj, GetSelectedTrack_ptr, new IntPtr(p));; return(*((int *)(b + 4))); } }
internal static unsafe string Invoke(IntPtr obj, EMediaPlayerTrack TrackType, int TrackIndex) { long *p = stackalloc long[] { 0L, 0L, 0L, 0L }; byte *b = (byte *)p; *(b + 0) = (byte)TrackType; *((int *)(b + 4)) = TrackIndex; Main.GetProcessEvent(obj, GetTrackLanguage_ptr, new IntPtr(p));; return(FString.Get(b + 8)); } }
internal static unsafe int Invoke(IntPtr obj, EMediaPlayerTrack TrackType, int TrackIndex) { long *p = stackalloc long[] { 0L, 0L, 0L }; byte *b = (byte *)p; *(b + 0) = (byte)TrackType; *((int *)(b + 4)) = TrackIndex; Main.GetProcessEvent(obj, GetNumTrackFormats_ptr, new IntPtr(p));; return(*((int *)(b + 8))); } }
internal static unsafe byte /*TODO: text FText*/ Invoke(IntPtr obj, EMediaPlayerTrack TrackType, int TrackIndex) { long *p = stackalloc long[] { 0L, 0L, 0L, 0L, 0L }; byte *b = (byte *)p; *(b + 0) = (byte)TrackType; *((int *)(b + 4)) = TrackIndex; Main.GetProcessEvent(obj, GetTrackDisplayName_ptr, new IntPtr(p));; //TODO: text FText ReturnValue return(UObject.NotImplemented <byte>() /*TODO: text FText*/); } }
///<summary>Set the format on the specified track.</summary> ///<remarks> ///Selecting the format will not switch to the specified track. To switch ///tracks, use SelectTrack instead. If the track is already selected, the ///format change will be applied immediately. /// ///@param TrackType The type of track to update. ///@param TrackIndex The index of the track to update. ///@param FormatIndex The index of the format to select (must be valid). ///@return true if the track was selected, false otherwise. ///@see GetNumTrackFormats, GetNumTracks, GetTrackFormat, SelectTrack ///</remarks> public bool SetTrackFormat(EMediaPlayerTrack TrackType, int TrackIndex, int FormatIndex) => MediaPlayer_methods.SetTrackFormat_method.Invoke(ObjPointer, TrackType, TrackIndex, FormatIndex);
///<summary>Select the active track of the given type.</summary> ///<remarks> ///The selected track will use its currently active format. Active formats will ///be remembered on a per track basis. The first available format is active by ///default. To switch the track format, use SetTrackFormat instead. /// ///@param TrackType The type of track to select. ///@param TrackIndex The index of the track to select, or INDEX_NONE to deselect. ///@return true if the track was selected, false otherwise. ///@see GetNumTracks, GetSelectedTrack, SetTrackFormat ///</remarks> public bool SelectTrack(EMediaPlayerTrack TrackType, int TrackIndex) => MediaPlayer_methods.SelectTrack_method.Invoke(ObjPointer, TrackType, TrackIndex);
///<summary>Get the language tag of the specified track.</summary> ///<remarks> ///@param TrackType The type of track. ///@param TrackIndex The index of the track, or INDEX_NONE for the selected one. ///@return Language tag, i.e. "en-US" for English, or "und" for undefined. ///@see GetNumTracks, GetTrackDisplayName ///</remarks> public string GetTrackLanguage(EMediaPlayerTrack TrackType, int TrackIndex) => MediaPlayer_methods.GetTrackLanguage_method.Invoke(ObjPointer, TrackType, TrackIndex);
///<summary>Get the index of the active format of the specified track type.</summary> ///<remarks> ///@param TrackType The type of track. ///@param TrackIndex The index of the track, or INDEX_NONE for the selected one. ///@return The index of the selected format. ///@see GetNumTrackFormats, GetSelectedTrack, SetTrackFormat ///</remarks> public int GetTrackFormat(EMediaPlayerTrack TrackType, int TrackIndex) => MediaPlayer_methods.GetTrackFormat_method.Invoke(ObjPointer, TrackType, TrackIndex);
///<summary>Get the human readable name of the specified track.</summary> ///<remarks> ///@param TrackType The type of track. ///@param TrackIndex The index of the track, or INDEX_NONE for the selected one. ///@return Display name. ///@see GetNumTracks, GetTrackLanguage ///</remarks> public byte /*TODO: text FText*/ GetTrackDisplayName(EMediaPlayerTrack TrackType, int TrackIndex) => MediaPlayer_methods.GetTrackDisplayName_method.Invoke(ObjPointer, TrackType, TrackIndex);
///<summary>Get the index of the currently selected track of the given type.</summary> ///<remarks> ///@param TrackType The type of track to get. ///@return The index of the selected track, or INDEX_NONE if no track is active. ///@see GetNumTracks, GetTrackFormat, SelectTrack ///</remarks> public int GetSelectedTrack(EMediaPlayerTrack TrackType) => MediaPlayer_methods.GetSelectedTrack_method.Invoke(ObjPointer, TrackType);
///<summary>Get the number of tracks of the given type.</summary> ///<remarks> ///@param TrackType The type of media tracks. ///@return Number of tracks. ///@see GetNumTrackFormats, GetSelectedTrack, SelectTrack ///</remarks> public int GetNumTracks(EMediaPlayerTrack TrackType) => MediaPlayer_methods.GetNumTracks_method.Invoke(ObjPointer, TrackType);