Expand description
§alsaseq crate
Rust API bindings and wrappers for alsaseq library to operate ALSA Sequencer character device.
The alsaseq library version 0.3.0 is the minimum supported version for underlying library.
The alsaseq crate is automatically generated by gir tool provided by gtk-rs project. ALSASeq-0.0 file from alsaseq library is used for the generation. But some functions are implemented manually.
§Usage
Add the following line to your Cargo.toml file:
[dependencies]
alsaseq = "0.7"
The API documentation is available in https://docs.rs/alsaseq/.
§License
The alsaseq crate is released under MIT license.
§Dependency
The alsaseq crate depends on API crates provided by gtk-rs project for type/object system, event loop, and dispacher.
§Repository
The alsaseq crate is the part of ALSA project and maintained by ALSA gobject-introspection team. The remote repository is located in https://github.com/alsa-project/alsa-gobject-rs.
§Support
If finding issue, please file it in https://github.com/alsa-project/alsa-gobject-rs.
§Sample programs
Some programs are available under examples
directory.
-
dump-event-data.rs
- demonstration to dump events received at port registered in ALSA Sequencer.
Re-exports§
pub use ffi;
Modules§
- For convenience to provide auto-generated/manual traits, and their blanket implementations.
- For subclass implementations derived from provided class.
Structs§
- A boxed object to express address in ALSA Sequencer.
- A GObject-derived object to express information of client.
- A GObject-derived object to express information of pool owned by client.
- A boxed structure for sequencer event.
- A boxed structure for container which includes batch of events.
- A boxed object to express data of connect event.
- A boxed object to express data of control event.
- A boxed object to express data of note event.
- A boxed object to express data of queue event.
- A boxed object to express data of result event.
- A set of flags for attributes of event filter.
- A set of flags for the attributes of port.
- A set of flags for the capabilities of port.
- A GObject-derived object to express information of port.
- A GObject-derived object to express information of queue.
- A GObject-derived object to express status of queue.
- A GObject-derived object to express tempo of queue.
- An object to express queue timer specific to instance in ALSA Timer.
- An interface to express common features of queue timer.
- An object to express filter to remove scheduled event in queue.
- A set of flags of the mode of removal event.
- A GObject-derived object to express data for subscription between ports.
- A GObject-derived object to express information of ALSA Sequencer.
- A GObject-derived object to express user client.
Enums§
- A set of enumerations for the type of client.
- A set of error code for
glib::Error
withstruct@EventError
domain. - A set of enumeration for the mode of data length.
- A set of enumerations for the mode of priority.
- A set of enumerations for the mode of time.
- A set of enumeration for the mode of time stamp.
- The type of event.
- A set of enumerations for the type to query subscription.
- A set of timer which drives queue.
- A set of enumerations for the type of timer source for the queue.
- A set of enumerations for specific addresses.
- A set of enumerations for the numerical IDs of specific clients.
- A set of enumerations for the numerical IDs of port for specific purpose.
- A set of enumerations for the numerical IDs of queue for specific purpose.
- A set of error code for [structGLib.Error] with
struct@UserClientError
domain.
Functions§
- Get the list of clients as the numeric identifier.
- Get the information of client according to the numeric ID.
- Get statistical information of memory pool for the given client.
- Get the list of numeric identifiers for port added by the client.
- Get the information of port in client.
- Get the list of queue in ALSA Sequencer.
- Get the information of queue, according to the numeric ID.
- Get the information of queue, according to the name string.
- Get current status of queue.
- Allocate devnode string for ALSA Sequencer and return it when exists.
- Allocate sysname string for ALSA sequencer and return it when exists.
- Get the list of subscription for given address and query type.
- Get information of ALSA Sequencer.