Crate alsarawmidi

Crate alsarawmidi 

Source
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§

StreamPair
GObject-derived object to express a pair of Rawmidi stream.
StreamPairInfoFlag
A set of flags for information of the pair of streams.
SubstreamInfo
A GObject-derived object to express information of substream.
SubstreamParams
A GObject-derived object to express parameters of substream.
SubstreamStatus
A GObject-derived object to express status of substream.

Enums§

StreamDirection
A set of enumerations for the direction of stream.
StreamPairError
A set of error code for glib::Error with ALSARawmidi.StreamPairError domain.

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.