Copyright © 2001-2023 MultiMedia Soft

TracksBoard.TrackDurationGet method

Previous pageReturn to chapter overviewNext page

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 object section.

 

 

Syntax

 

[Visual Basic]

control.TracksBoard.TrackDurationGet (

nTrack as Integer,

ByRef nDurationMs as Long

) as enumErrorCodes


 

[C++]

short control.TracksBoard.TrackDurationGet (

short nTrack,

long *nDurationMs

);


 

Parameter

Description

 

 

nTrack

Zero-based index of the track where the item will be placed. The current number of tracks can be obtained through the TracksBoard.TracksCountGet method.

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