Expand description
§alsarawmidi crate
Rust API bindings and wrappers for alsarawmidi library to operate ALSA Rawmidi character device.
The alsarawmidi library version 0.3.0 is the minimum supported version for underlying library.
The alsarawmidi crate is automatically generated by gir tool provided by gtk-rs project. ALSARawmidi-0.0 file from alsarawmidi library is used for the generation. But some functions are implemented manually.
§Usage
Add the following line to your Cargo.toml file:
[dependencies]
alsarawmidi = "0.8"The API documentation is available in https://docs.rs/alsarawmidi/.
§License
The alsarawmidi crate is released under MIT license.
§Dependency
The alsarawmidi crate depends on API crates provided by gtk-rs project for type/object system, event loop, and dispacher.
§Repository
The alsarawmidi 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.
Re-exports§
pub use alsarawmidi_sys as ffi;
Modules§
- prelude
- For convenience to provide auto-generated/manual traits, and their blanket implementations.
- subclass
- For subclass implementations derived from provided class.
Structs§
- Stream
Pair - GObject-derived object to express a pair of Rawmidi stream.
- Stream
Pair Info Flag - A set of flags for information of the pair of streams.
- Substream
Info - A GObject-derived object to express information of substream.
- Substream
Params - A GObject-derived object to express parameters of substream.
- Substream
Status - A GObject-derived object to express status of substream.
Enums§
- Stream
Direction - A set of enumerations for the direction of stream.
- Stream
Pair Error - A set of error code for
glib::ErrorwithALSARawmidi.StreamPairErrordomain.
Functions§
- device_
id_ list - Get the list of numeric identifier for available rawmidi devices of sound card.
- rawmidi_
devnode - Allocate devnode string for rawmidi device and return it when exists.
- rawmidi_
sysname - Allocate sysname for rawmidi device and return it when it exists.
- subdevice_
id_ list - Get the list of numeric identifier for subdevices belongs to the numerical identifier of card, device, and the direction.
- substream_
info - Get the information of substream pointed by the numeric identifier of card, device, subdevice, and the direction.