Method

ALSARawmidiStreamPairset_substream_params

Declaration [src]

gboolean
alsarawmidi_stream_pair_set_substream_params (
  ALSARawmidiStreamPair* self,
  ALSARawmidiStreamDirection direction,
  ALSARawmidiSubstreamParams* substream_params,
  GError** error
)

Description [src]

Set parameters 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_PARAMS command for ALSA rawmidi character device.

Parameters

direction ALSARawmidiStreamDirection
 

The direction of substream attached to the stream pair.

substream_params ALSARawmidiSubstreamParams
 

The parameters of substream.

 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE when the overall operation finishes successfully, else FALSE.