getPlaybackDeviceInfo [2/2]

Get the information and type of the audio playback device.

virtual int getPlaybackDeviceInfo(char deviceId[MAX_DEVICE_ID_LENGTH], char deviceName[MAX_DEVICE_ID_LENGTH], char deviceTypeName[MAX_DEVICE_ID_LENGTH]) = 0;

Details

Since
v4.3.1

This method applies to macOS only.

Parameters

deviceId
Th ID of the audio playback device. The maximum length is MAX_DEVICE_ID_LENGTH_TYPE.
deviceName
Output parameter; the name of the playback device. The maximum length is MAX_DEVICE_ID_LENGTH_TYPE.
deviceTypeName
Output parameter; indicates the type of audio playback devices, such as built-in, USB and HDMI. The maximum length is MAX_DEVICE_ID_LENGTH_TYPE.

Returns

  • 0: Success.
  • < 0: Failure.