]> 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)
committer坂本 貴史 <o-takashi@sakamocchi.jp>
Mon, 27 Jun 2022 23:22:04 +0000 (08:22 +0900)
commit0a9575e4cc0d0e63cb4815825ddc2506a63447a0
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