MidiDevices.CountGet method |
![]() ![]() ![]() |
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:
|
|||||||||
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 |