Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

PortMidi.GetDeviceInfo

Return device information.

Component Version macOS Windows Linux Server iOS SDK
PortMidi 4.2 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "PortMidi.GetDeviceInfo"; index; selector )   More

Parameters

Parameter Description Example
index The device ID to query. From 0 to PortMidi.DeviceCount-1. 0
selector Which detail to query. Can be Name, Interface, Input, Output or Opened. "name"

Result

Returns value or error.

Description

Return device information.
Information to query are the name of the device, the name of the interface, whether it's an input or output device and the open status.

Examples

Query if first device is open:

MBS( "PortMidi.GetDeviceInfo"; 0; "opened" )

Query name of third device

MBS( "PortMidi.GetDeviceInfo"; 2; "Name" )

See also

Example Databases

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 18th August 2014


PortMidi.GetDeviceID - PortMidi.GetDeviceName

💬 Ask a question or report a problem