Function

ALSARawmidiget_substream_info

Declaration [src]

gboolean
alsarawmidi_get_substream_info (
  guint card_id,
  guint device_id,
  ALSARawmidiStreamDirection direction,
  guint subdevice_id,
  ALSARawmidiSubstreamInfo** substream_info,
  GError** error
)

Description [src]

Get the information of substream pointed by the numeric identifier of card, device, subdevice, and the direction.

The call of function executes open(2), close(2), and ioctl(2) system call with SNDRV_CTL_IOCTL_RAWMIDI_INFO command for ALSA control character device.

Parameters

card_id guint
 

The numeric value for sound card to query.

device_id guint
 

The numeric value of rawmidi device to query.

direction ALSARawmidiStreamDirection
 

The direction of stream, one of ALSARawmidiStreamDirection.

subdevice_id guint
 

The numeric value of subdevice in rawmidi device.

substream_info ALSARawmidiSubstreamInfo
 

The information of substream for the subdevice.

 The argument will be set by the function.
 The called function takes ownership of the data, and is responsible for freeing it.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE when the overall operation finishes successfully, else FALSE.