alsa-gobject: seq: introduce container of events

GitHub pull_request - opened github at alsa-project.org
Mon Jun 8 16:45:04 CEST 2020


alsa-project/alsa-gobject pull request #25 was opened from takaswie:

Hi,

This patchset adds a new GObject-derived object; ALSASeqEventCntr to obsolete usage of ALSASeqEvent, ALSASeqEventFixed, and ALSASeqEventVariable.

At present, ALSASeqUserClient processes events per each. It brings recursive calls of scheduling API or recursive handling for emitted GObject signal for received events. It's inconvenient in a point of memory usage and signal frequency.

The ALSASeqEventCntr includes a flat memory to represent a batch of events. The object includes many accessor methods to properties of event according to given index number. The object enables applications to handle a batch of events without the recursive calls or the recursive handling.

This patchset obsoletes ALSASeqEvent, thus event structure is not produced itself. Applications can define its own event structure so that it's convenient in a point of chose programming language. It's probable to design collection in the languages with the object.

Request URL   : https://github.com/alsa-project/alsa-gobject/pull/25
Patch URL     : https://github.com/alsa-project/alsa-gobject/pull/25.patch
Repository URL: https://github.com/alsa-project/alsa-gobject


More information about the Alsa-devel mailing list