Copyright © 2013-2014 MultiMedia Soft

MidiDevices.CountGet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Reports the number of MIDI devices installed inside the system.

 

For further details about the use of MIDI devices see the MidiDevices object section and the How to manage MIDI devices tutorial.

 

 

Syntax

 

[Visual Basic]

control.MidiDevices.CountGet (

bInput as enumBoolean,

nCount as Long

) as enumDjcErrorCodes


 

[C++]

short control.MidiDevices.CountGet (

short bInput,

long *nCount

);


 

Parameter

Description

 

 

bInput

Boolean value that specifies if we want to obtain the number of input or of output devices.

Supported values are the following:

Mnemonic constant

Value

Meaning

BOOL_FALSE

0

Enumerates output devices

BOOL_TRUE

1

Enumerates input devices

nCount

Reference that, on return from the method call, will contain the number of detected MIDI devices.

 

 

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