sndio_sys/
lib.rs

1//! Bindings for [`sndio`].
2//!
3//! This crate provides low-level bindings for [`sndio`] generated using
4//! [`bindgen`].
5//!
6//! > Sndio is a small audio and MIDI framework part of the OpenBSD
7//! > project and ported to FreeBSD, Linux and NetBSD. It provides a
8//! > lightweight audio & MIDI server and a fully documented user-space
9//! > API to access either the server or directly the hardware in a uniform
10//! > way.
11//!
12//! See [`sndio`] documentation for more information about each API:
13//!
14//!  - [`sio_open`] and other `sio_*` methods for accessing the audio server
15//!    for playback/recording.
16//!  - [`mio_open`] and other `mio_*` methods for accessing MIDI hardware.
17//!  - [`sioctl_open`] and other `sioctl_*` methods for accessing control
18//!    parameters of audio devices.
19//!
20//! [`sndio`]: http://www.sndio.org/
21//! [`bindgen`]: https://github.com/rust-lang/rust-bindgen
22//! [`sio_open`]: http://man.openbsd.org/sio_open
23//! [`mio_open`]: http://man.openbsd.org/mio_open
24//! [`sioctl_open`]: http://man.openbsd.org/sioctl_open
25
26#![allow(non_camel_case_types)]
27#![allow(non_snake_case)]
28
29pub type pollfd = libc::pollfd;
30
31include!(concat!(env!("OUT_DIR"), "/bindings.rs"));