Copyright © 2005-2018 MultiMedia Soft

MIDI.TrackCountGet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains the number of available MIDI tracks inside the loaded MIDI stream.

 

For further details about the use of MIDI protocol see the MIDIMan class section and the How to deal with MIDI protocol tutorial.

 

 

Syntax

 

[Visual Basic]

Public Function TrackCountGet (

nPlayerIndex as Int16,

ByRef nTracks as Int16

) as enumErrorCodes


 

[C#]

public enumErrorCodes TrackCountGet (

Int16 nPlayerIndex,

ref Int16 nTracks

);


 

[C++]

public: enumErrorCodes TrackCountGet (

Int16 nPlayerIndex,

Int16 __gc *nTracks

);


 

 

 

Parameter

Description

 

 

nPlayerIndex

Number representing the zero-based index of the involved player.

nTracks

Reference that, on return from the method call, will contain the number of MIDI tracks inside the loaded MIDI stream.

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred (see the LastError property for further error details)

enumErrorCodes.NOERROR (0)

The method call was successful.