Method

ALSARawmidiStreamPairopen

Declaration [src]

gboolean
alsarawmidi_stream_pair_open (
  ALSARawmidiStreamPair* self,
  guint card_id,
  guint device_id,
  guint subdevice_id,
  ALSARawmidiStreamPairInfoFlag access_modes,
  gint open_flag,
  GError** error
)

Description [src]

Open file descriptor for a pair of streams to attach input/output substreams corresponding to the given subdevice.

The call of function executes open(2) system call for ALSA rawmidi character device.

Parameters

card_id guint
 

The numeric identifier of sound card.

device_id guint
 

The numeric identifier of rawmidi device for the sound card.

subdevice_id guint
 

The numeric identifier of subdevice for the rawmidi device.

access_modes ALSARawmidiStreamPairInfoFlag
 

Access flags for stream direction.

open_flag gint
 

The flag of open(2) system call. O_RDWR, O_WRONLY and O_RDONLY are forced to fulfil internally according to the access_modes.

error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE when the overall operation finishes successfully, else FALSE.