Skip to contentSkip to conversation

alsa-gobject: seq: introduce container of events

DISCUSSION GitHub pull_request - opened 1 participant 1 message Jun 8, 2020 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

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