MPLATFORMLib Namespace > MMixerClass Class : FileInOutGetTC Method |
Public Overridable Sub FileInOutGetTC( _ ByRef _pTCIn As M_TIMECODE, _ ByRef _pTCOut As M_TIMECODE, _ ByRef _pbOutSpecified As Integer _ )
public virtual void FileInOutGetTC( out M_TIMECODE _pTCIn, out M_TIMECODE _pTCOut, out int _pbOutSpecified )
public procedure FileInOutGetTC( Out _pTCIn: M_TIMECODE; Out _pTCOut: M_TIMECODE; Out _pbOutSpecified: Integer ); virtual;
public: virtual void FileInOutGetTC( [PARAMFLAG::Out] M_TIMECODE _pTCIn, [PARAMFLAG::Out] M_TIMECODE _pTCOut, [PARAMFLAG::Out] int _pbOutSpecified )
Here is example of how to work with timecode:
Dim myTime As M_TIMECODE Dim pOutTC As M_TIMECODE Dim pnOutSpec As Integer Dim myItem As MItem Dim strPath As String Dim dblPos As Double myPlaylist.PlaylistGetByIndex(1, dblPos, strPath, myItem) Dim myFrame As MFrame myItem.FileInOutGetTC(myTime, pOutTC, pnOutSpec) myTime.nHours = 0 myTime.nMinutes = 0 myTime.nSeconds = 9 myTime.nFrames = 0 myItem.FileFrameGetByTC(myTime, myFrame)
M_TIMECODE myTime; M_TIMECODE pOutTC; int pnOutSpec; MItem myItem; string strPath; double dblPos; myPlaylist.PlaylistGetByIndex(1, out dblPos, out strPath, out myItem); MFrame myFrame; myItem.FileInOutGetTC(out myTime, out pOutTC, out pnOutSpec); myTime.nHours = 0; myTime.nMinutes = 0; myTime.nSeconds = 9; myTime.nFrames = 0; myItem.FileFrameGetByTC(ref myTime, out myFrame);
var myTime, pOutTC: M_TIMECODE; myFrame: MFrame; dblPos: double; strPath: widestring; pnOutSpec: integer; myItem: MItem; begin myPlaylist.PlaylistGetByIndex(1, dblPos, strPath, myItem); myItem.FileInOutGetTC(myTime, pOutTC, pnOutSpec); myTime.nHours = 0; myTime.nMinutes = 0; myTime.nSeconds = 9; myTime.nFrames = 0; myItem.FileFrameGetByTC(myTime, myFrame); end;