Method

ALSARawmidiStreamPairget_substream_status

Declaration [src]

gboolean
alsarawmidi_stream_pair_get_substream_status (
  ALSARawmidiStreamPair* self,
  ALSARawmidiStreamDirection direction,
  ALSARawmidiSubstreamStatus* const* substream_status,
  GError** error
)

Description [src]

Retrieve status of substream for given direction, which is attached to the pair of streams.

The call of function executes ioctl(2) system call with SNDRV_RAWMIDI_IOCTL_STATUS command for ALSA rawmidi character device.

Parameters

direction ALSARawmidiStreamDirection
 

The direction of substream attached to the stream pair.

substream_status ALSARawmidiSubstreamStatus
 

The status of substream.

 The argument will be modified by the function.
 The instance 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.