Copyright © 2013-2015 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 ClassMidiDevices class section and the How to manage MIDI devices tutorial.

 

 

Syntax

 

[Visual Basic]

MidiDevices.MidiDevices.CountGet (

bInput as Boolean,

ByRef nCount as Int32

) as enumDjcErrorCodes


 

[C#]

public enumDjcErrorCodes MidiDevices.CountGet (

bool bInput,

ref Int32 nCount

);


 

[C++]

public: enumDjcErrorCodes MidiDevices.CountGet (

bool bInput,

Int32 __gc *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

Meaning

false

Enumerates output devices

true

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 see the last error.

enumDjcErrorCodes.ERR_DJC_NOERROR (0)

The method call was successful.