TracksBoard.TrackDurationGet method |
|
Remarks
Obtains the duration of the given track.
For details about the use of the TracksBoard refer to the How to use the TracksBoard to visually compose songs tutorial.
For further details about methods of the TracksBoard refer to the TracksBoard class section.
Syntax
[Visual Basic] Public Function TrackDurationGet ( nTrack as Int32, ByRef nDurationMs as Int32 ) as enumErrorCodes |
[C#] public enumErrorCodes TrackDurationGet ( Int32 nTrack, ref Int32 nDurationMs ); |
[C++] public: enumErrorCodes TrackDurationGet ( Int32 nTrack, Int32 __gc *nDurationMs ); |
Parameter |
Description |
||||||
|
|
||||||
nTrack |
Unique identification number assigned to the sound item after being generated by one of the following methods:
|
||||||
nDurationMs |
Reference that, after returning from the method call, will contain the the duration of the track, expressed in milliseconds. |
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred, check the LastError property value in order to get the error code |
enumErrorCodes.ERR_NOERROR (0) |
The method call was successful |