]> git.alsa-project.org Git - alsa-gobject.git/commit
event: add public API to compute pool consumption when scheduling event
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 27 Jun 2022 08:46:54 +0000 (17:46 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 27 Jun 2022 08:46:54 +0000 (17:46 +0900)
commit6e82db25858f05d06634f39b816cb0dd7266a0fe
treeb85526b101e4fd961b328c8e8aefa412672b395f
parent6ae72252e8dbbd29f06d01b2067d5f39797baddf
event: add public API to compute pool consumption when scheduling event

In design of ALSA Sequencer, delivery of event consumes cell in client
pool. For usual event, it's one cell. For variable length of event, it's
multiple cells including the total length of event.

ALSASeq.ClientPool class has properties to express the number of cells
and free cells in client pool. When comparing to the properties,
applications get to know whether the scheduling operation is blocked or
not.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
src/seq/alsaseq.map
src/seq/event.c
src/seq/event.h
tests/alsaseq-event