TracksBoard.ItemDurationGet method |
|
Remarks
Obtains the duration of the given item.
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 object section.
Syntax
[Visual Basic] control.TracksBoard.ItemDurationGet ( nUniqueId as Long, ByRef nLoadedDurationMs as Long, ByRef nOriginalDurationMs as Long ) as enumErrorCodes |
[C++] short control.TracksBoard.ItemDurationGet ( long nUniqueId, long *nLoadedDurationMs, long *nOriginalDurationMs ); |
Parameter |
Description |
||||||
|
|
||||||
nUniqueId |
Unique identification number assigned to the sound item after being generated by one of the following methods:
|
||||||
nLoadedDurationMs |
Reference that, on return from the method call, will contain the duration of the portion of sound file currently loaded, expressed in milliseconds. This value is affected by a previous call to one between the TracksBoard.ItemSoundFileLoadRangeSet method and the TracksBoard.ItemDurationStretch method. |
||||||
nOriginalDurationMs |
Reference that, on return from the method call, will contain the original duration of the sound file, 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 |