Method

ALSARawmidiStreamPaircreate_source

Declaration [src]

gboolean
alsarawmidi_stream_pair_create_source (
  ALSARawmidiStreamPair* self,
  GSource** gsrc,
  GError** error
)

Description [src]

Allocate GSource structure to handle events from ALSA rawmidi character device for input substream. In each iteration of GMainContext, the read(2) system call is executed to dispatch control event for ALSARawmidiStreamPair::handle-messages signal, according to the result of poll(2) system call.

Parameters

gsrc GSource
 

A GSource to handle events from ALSA rawmidi character device.

 The argument will be set 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.