Method

ALSASeqUserClientschedule_event

Declaration [src]

gboolean
alsaseq_user_client_schedule_event (
  ALSASeqUserClient* self,
  const ALSASeqEvent* event,
  GError** error
)

Description [src]

Deliver the event immediately, or schedule it into memory pool of the client.

The call of function executes write(2) system call for ALSA sequencer character device. When ALSASeqClientPool:output-free is less than alsaseq_event_calculate_pool_consumption() and alsaseq_user_client_open() is called without non-blocking flag, the user process can be blocked untill enough number of cells becomes available.

Parameters

event ALSASeqEvent
 

An instance of ALSASeqEvent.

 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.