]>
git.alsa-project.org Git - alsa-gobject.git/log
Takashi Sakamoto [Mon, 12 Dec 2022 08:09:17 +0000 (17:09 +0900)]
meson: remove unused variable for libudev dependency
It's never used.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Mon, 12 Dec 2022 07:39:12 +0000 (16:39 +0900)]
all: remove annotation from error domain
As I fixed gi-docgen at
6c690567b6b ("utils: fix failure to generate
link to error domain"), gi-docgen release of 2022.2 brings loss of
backward compatibility about annotation for error domain.
This commit is a workaround for successful build either in 2022.1 or
former releases and in 2022.2 or later releases of gi-docgen. When
gi-docgen 2022.2 disseminates vastly, the annotation will be back.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sun, 11 Dec 2022 07:33:12 +0000 (16:33 +0900)]
obsolete usage of LXC container for workflow of Github Actions
The network connection inner LXC container is unavailable since Nov 20,
2022.
This commit uses docker container instead.
Takashi Sakamoto [Thu, 30 Jun 2022 03:07:59 +0000 (12:07 +0900)]
bump release version up to 0.3.0
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Wed, 29 Jun 2022 02:49:00 +0000 (11:49 +0900)]
update README about change of ALSACtl.ElemValue
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Wed, 29 Jun 2022 02:49:00 +0000 (11:49 +0900)]
ctl: elem-value: retrieve fixed-sized array by getter method for integer 64 values
In UAPI of Linux sound subsystem, 'struct snd_ctl_elem_values' has
fixed-sized array. It's natural to retrieve the array as is.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Wed, 29 Jun 2022 02:49:00 +0000 (11:49 +0900)]
ctl: elem-value: retrieve fixed-sized array by getter method for IEC 60958 values
In UAPI of Linux sound subsystem, 'struct snd_ctl_elem_values' has
fixed-sized array. It's natural to retrieve the array as is.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Wed, 29 Jun 2022 02:49:00 +0000 (11:49 +0900)]
ctl: elem-value: retrieve fixed-sized array by getter method for byte values
In UAPI of Linux sound subsystem, 'struct snd_ctl_elem_values' has
fixed-sized array. It's natural to retrieve the array as is.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Wed, 29 Jun 2022 02:49:00 +0000 (11:49 +0900)]
ctl: elem-value: retrieve fixed-sized array by getter method for enumerated values
In UAPI of Linux sound subsystem, 'struct snd_ctl_elem_values' has
fixed-sized array. It's natural to retrieve the array as is.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Wed, 29 Jun 2022 02:49:00 +0000 (11:49 +0900)]
ctl: elem-value: retrieve fixed-sized array by getter method for integer values
In UAPI of Linux sound subsystem, 'struct snd_ctl_elem_values' has
fixed-sized array. It's natural to retrieve the array as is.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Wed, 29 Jun 2022 02:49:00 +0000 (11:49 +0900)]
ctl: elem-value: retrieve fixed-sized array by getter method for boolean values
In UAPI of Linux sound subsystem, 'struct snd_ctl_elem_values' has
fixed-sized array. It's natural to retrieve the array as is.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Wed, 29 Jun 2022 02:49:00 +0000 (11:49 +0900)]
ctl: elem-value: fix casting for byte data
Fixed:
0fa1e17e3f96 ("ctl: elem_value: add APIs to set/get values of bytes type")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Tue, 28 Jun 2022 21:45:49 +0000 (06:45 +0900)]
update README
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Tue, 28 Jun 2022 21:45:49 +0000 (06:45 +0900)]
seq: remove-filter: rewrite as GObject-derived object
In UAPI of ALSA Sequencer, 'struct snd_seq_remove_events' has reserved
member for future use. In the case, the convention of this project lets
us to use class instead of structure.
Additionally, current implementation of ALSASeq.RemoveFilter doesn't
support multiple condition to query events for removal. It's not
necessarily convenient.
This commit rewrites ALSASeq.RemoveFilter.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Tue, 28 Jun 2022 21:45:49 +0000 (06:45 +0900)]
seq: enums: add rest of entries for remove filter flags
It's planned to rewrite ALSASeq.RemoveFilter for flexible configuration of
filter condition.
This commit adds the reset of entries for the flags.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Tue, 28 Jun 2022 21:45:49 +0000 (06:45 +0900)]
seq: event-cntr: remove obsoleted internal function
Fixes: 4bc8ea4b91d2 ("seq: event-cntr: rewrite as boxed structure")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Mon, 27 Jun 2022 08:46:54 +0000 (17:46 +0900)]
ci: separate libudev-dev installation from the other
The dependency on libudev-dev is specific to alsa-gobject libraries apart
from the other libraries under alsa gobject-introspection team.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Mon, 27 Jun 2022 08:46:54 +0000 (17:46 +0900)]
all: replace 'represent' with 'express' in comments
For better text.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Mon, 27 Jun 2022 08:46:54 +0000 (17:46 +0900)]
user-client/client-pool: update function comments about event scheduling
When scheduling events, the user client should take care of free cells in
own output memory pool. The number of free cells is available via property
of ClientPool class. The number of cells consumed by event is available
via method of Event boxed structure.
This commit adds comments about it.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Mon, 27 Jun 2022 08:46:54 +0000 (17:46 +0900)]
client-pool: change signedness for size properties
The properties for size of pool and cells always have positive value.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Mon, 27 Jun 2022 08:46:54 +0000 (17:46 +0900)]
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>
Takashi Sakamoto [Sat, 25 Jun 2022 02:00:43 +0000 (11:00 +0900)]
update README with compatibility note
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sat, 25 Jun 2022 02:00:43 +0000 (11:00 +0900)]
ctl: elem-value: update class description
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sat, 25 Jun 2022 02:00:43 +0000 (11:00 +0900)]
ctl: elem-value: rewrite getter for 64 bit signed integer values
This commit rewrites the getter method so that it returns a pointer to
internal storage for 64 bit signed integer values.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sat, 25 Jun 2022 02:00:43 +0000 (11:00 +0900)]
ctl: elem-value: rewrite getter for IEC 60958 user data
This commit rewrites the getter method so that it returns a pointer to
internal storage for IEC 60958 user data.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sat, 25 Jun 2022 02:00:43 +0000 (11:00 +0900)]
ctl: elem-value: rewrite getter for IEC 60958 channel status
This commit rewrites the getter method so that it returns a pointer to
internal storage for IEC 60958 channel status.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sat, 25 Jun 2022 02:00:43 +0000 (11:00 +0900)]
ctl: elem-value: rewrite getter for 8 bit unsigned integer values
This commit rewrites the getter method so that it returns a pointer to
internal storage for 8 bit unsigned integer values.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sat, 25 Jun 2022 02:00:43 +0000 (11:00 +0900)]
ctl: elem-value: rewrite getter for enumeration index values
This commit rewrites the getter method so that it returns a pointer to
internal storage for enumeration index values.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sat, 25 Jun 2022 02:00:43 +0000 (11:00 +0900)]
ctl: elem-value: rewrite getter for 32 bit signed integer values
This commit rewrites the getter method so that it returns a pointer to
internal storage for 32 bit signed integer values.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sat, 25 Jun 2022 02:00:43 +0000 (11:00 +0900)]
ctl: elem-value: rewrite getter for boolean values
This commit rewrites the getter method so that it returns a pointer to
internal storage for boolean values.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sat, 25 Jun 2022 02:00:43 +0000 (11:00 +0900)]
ctl: elem-value: clear value field at setter method
For safe at reuse of the boxed structure.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sat, 25 Jun 2022 02:00:43 +0000 (11:00 +0900)]
timer: fix entry in exported symbol map
Fixes: b4e62cdc0eac ("timer: instance-status: rename method with real time")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Wed, 22 Jun 2022 03:05:26 +0000 (12:05 +0900)]
seq: event: fix description about methods relevant to time stamp
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Wed, 22 Jun 2022 03:05:26 +0000 (12:05 +0900)]
timer: query: rename to ALSATimer.get_real_time_clock_id()
For friendly name.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Wed, 22 Jun 2022 03:05:26 +0000 (12:05 +0900)]
timer: instance-status: rename method with real time
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Wed, 22 Jun 2022 03:05:26 +0000 (12:05 +0900)]
timer: enums: rename to ALSATimer.RealTimeEventType
The set of events is used only for ALSATimer.RealTimeEvent.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Wed, 22 Jun 2022 03:05:26 +0000 (12:05 +0900)]
timer: enums: rename to ALSATimer.EventType.TICK_TIME and REAL_TIME
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Wed, 22 Jun 2022 03:05:26 +0000 (12:05 +0900)]
timer: real-time-event: rename boxed structure
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Wed, 22 Jun 2022 03:05:26 +0000 (12:05 +0900)]
timer: tick-time-event: rename boxed structure
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Wed, 22 Jun 2022 03:05:26 +0000 (12:05 +0900)]
timer: move ALSATimer.TstampEvent files for future rename
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Wed, 22 Jun 2022 03:05:26 +0000 (12:05 +0900)]
timer: move ALSATimer.TickEvent files for future rename
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Wed, 22 Jun 2022 03:05:26 +0000 (12:05 +0900)]
utils: successfully parse the string teminated by '\n'
It requires to parse the literal from sysfs node.
Fixes: cc92f5ca9478 ("utils: add utility to compute integer value from string literal")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
seq: user-client: add annotation to object properties
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
seq: system-info: add annotation to object properties
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
seq: queue-tempo: add annotation to object properties
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
seq: queue-status: add annotation to object properties
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
seq: queue-info: add annotation to object properties
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
seq: port-info: fix tag indentation
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
seq: client-pool: add annotation to object properties
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
seq: client-info: add annotation to object properties
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
seq: fix description of object properties in which enumerations are available
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
timer: instance-status: add annotation to object properties
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
timer: instance-params: add annotation to object properties
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
timer: instance-info: add annotation to object properties
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
timer: device-status: add annotation to object properties
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
timer: device-params: add annotation to object properties
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
timer: device-info: add annotation to object properties
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
hwdep: device-info: add annotation to object properties
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
rawmidi: substream-status: add annotation to object properties
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
rawmidi: substream-params: add annotation to object properties
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
rawmidi: substream-info: add annotation to object properties
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
rawmidi: stream-pair: add annotation to object properties
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
card: elem-value: add annotation to object properties
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
ctl: card-info: add annotation to object properties
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)]
ctl: card: add annotation to object properties
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test scripts for namespace functions
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSASeq.QueueTimerCommon interface
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSAHwdep.DeviceCommon interface
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSACtl.ElemInfoSingleArray interface
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSACtl.ElemInfoCommon interface
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: test virtual functions in object
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: refine helper function to test object
When implementing GObject interface, available properties, virtual
methods, and signals are not referred by attributes of object, while
available methods are available.
This commit expands current helper function to test object interface.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: test object type instead of its instance
No need to instantiate object to test.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSASeq.RemoveFilter boxed structure
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSASeq.EventDataResult boxed structure
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSASeq.EventDataQueue boxed structure
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSASeq.EventDataNote boxed structure
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSASeq.EventDataCtl boxed structure
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSASeq.EventDataConnect boxed object
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSASeq.Event boxed structure
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSASeq.EventCntr boxed structure
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSASeq.Addr boxed structure
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSATimer.TstampEvent boxed structure
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSATimer.TickEvent boxed structure
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSATimer.DeviceId boxed structure
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add test script for ALSACtl.ElemId boxed structure
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: add helper function to test enumerations and flags
This commit adds helper function for enumerations and flags. All of
available enumerations and flags are available via object attributes.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Sun, 19 Jun 2022 11:38:51 +0000 (20:38 +0900)]
tests: rename helper function to test object interface
It appears that some helper functions are required to test GObject
interface, enumerations, and flags.
This commit renames current helper function for objects.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Tue, 14 Jun 2022 10:23:22 +0000 (19:23 +0900)]
seq: event-cntr: add internal API to serialize list of events
ALSASeq.EventCntr still handles batch of events, therefore it's good to
put serialization code into it.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Tue, 14 Jun 2022 10:23:22 +0000 (19:23 +0900)]
seq: event-cntr: rewrite as boxed structure
The addition of ALSASeq.Event boxed structure obsoletes many methods of
ALSASeq.EventCntr.
This commit rewrite it for convenience.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Tue, 14 Jun 2022 10:23:22 +0000 (19:23 +0900)]
seq: user-client: rewrite public API to schedule single event
This commit rewrite ALSASeq.schedule_event() to get an instance of
ALSASeq.Event.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Tue, 14 Jun 2022 10:23:22 +0000 (19:23 +0900)]
seq: user-client: add public API to schedule list of events
This commit adds ALSASeq.schedule_events() to schedule the list of
events.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Tue, 14 Jun 2022 10:23:22 +0000 (19:23 +0900)]
seq: event: add boxed structure for event
Current implementation has ALSASeq.EventCntr for user applications to
handle batch of events. The properties of event is directly retrieved
from it by index number, however it's necessarily useful.
This commit adds boxed structure specific to each event.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Tue, 14 Jun 2022 10:23:21 +0000 (19:23 +0900)]
seq: enums: obsolete ALSASeqSubscribeFlag enumerations
ALSASeq.SubscribeFlag is defined but it's more convenient to add the
flags as properties in ALSASeq.SubscribeData.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Tue, 14 Jun 2022 10:23:21 +0000 (19:23 +0900)]
seq: port-info: rename properties for time stamp
ALSASeq.PortInfo has :timestamp-overwrite and :timestamp-mode.
This commit renames them according to convention. Additionally, property
annotations are added as well.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Tue, 14 Jun 2022 10:23:21 +0000 (19:23 +0900)]
seq: enums: rename to tstamp mode
Some stuffs are named with 'timestamp', however 'tstamp' seems to be
preferable for consistency.
This commit renames them.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Tue, 14 Jun 2022 10:23:21 +0000 (19:23 +0900)]
seq: remove-filter: remove unused error arguments
ALSASeq.RemoveFilter class has some constructors according to
the filter condition. These are defined as throw function, however error
argument is not used at all.
This commit removes the unused argument.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Tue, 14 Jun 2022 10:23:21 +0000 (19:23 +0900)]
seq: tstamp: remove unused boxed structure
The boxed structure for time stamp union is not used anymore.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Tue, 14 Jun 2022 10:23:21 +0000 (19:23 +0900)]
seq: event-cntr/event-data-queue: obsolete timestamp functions by adding alternatives
In UAPI of ALSA Sequencer, time stamp is defined as union which has
tick time member and real time member. There is no tag to select two
members, thus user applications should judge which member is used. In
this meaning, exposing the union is not necessarily useful.
This commit is a preparation to obsolete the union. The methods to
retrieve the union are rewrite to retrieve either tick time or real time
explicitly.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Takashi Sakamoto [Tue, 14 Jun 2022 10:23:21 +0000 (19:23 +0900)]
update README
The command line examples are updated to use '-c' option of meson
instead of cd command.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>