Expand description
Bindings for sndio.
This crate provides low-level bindings for sndio generated using
bindgen.
Sndio is a small audio and MIDI framework part of the OpenBSD project and ported to FreeBSD, Linux and NetBSD. It provides a lightweight audio & MIDI server and a fully documented user-space API to access either the server or directly the hardware in a uniform way.
See sndio documentation for more information about each API:
sio_openand othersio_*methods for accessing the audio server for playback/recording.mio_openand othermio_*methods for accessing MIDI hardware.sioctl_openand othersioctl_*methods for accessing control parameters of audio devices.
Structs§
- __
atomic_ wide_ counter__ bindgen_ ty_ 1 - __
fsid_ t - __
once_ flag - __
pthread_ cond_ s - __
pthread_ internal_ list - __
pthread_ internal_ slist - __
pthread_ mutex_ s - __
pthread_ rwlock_ arch_ t - __
sigset_ t - fd_set
- mio_hdl
- sio_cap
- sio_
cap_ sio_ conf - sio_
cap_ sio_ enc - sio_hdl
- sio_par
- sioctl_
desc - sioctl_
hdl - sioctl_
node - timespec
- timeval
Constants§
- BIG_
ENDIAN - BYTE_
ORDER - FD_
SETSIZE - LITTLE_
ENDIAN - MIO_IN
- MIO_OUT
- MIO_
PORTANY - PDP_
ENDIAN - SIOCTL_
LIST - SIOCTL_
NAMEMAX - SIOCTL_
NONE - SIOCTL_
NUM - SIOCTL_
READ - SIOCTL_
SEL - SIOCTL_
SW - SIOCTL_
VEC - SIOCTL_
WRITE - SIO_
DEVANY - SIO_
ERROR - SIO_
IGNORE - SIO_
LE_ NATIVE - SIO_
MAXVOL - SIO_
NCHAN - SIO_
NCONF - SIO_
NENC - SIO_
NRATE - SIO_
PLAY - SIO_REC
- SIO_
SYNC - _ATFILE_
SOURCE - _BITS_
BYTESWAP_ H - _BITS_
ENDIANNESS_ H - _BITS_
ENDIAN_ H - _BITS_
PTHREADTYPES_ ARCH_ H - _BITS_
PTHREADTYPES_ COMMON_ H - _BITS_
STDINT_ INTN_ H - _BITS_
TIME64_ H - _BITS_
TYPESIZES_ H - _BITS_
TYPES_ H - _BITS_
UINTN_ IDENTITY_ H - _DEFAULT_
SOURCE - _ENDIAN_
H - _FEATURES_
H - _POSIX_
C_ SOURCE - _POSIX_
SOURCE - _STDC_
PREDEF_ H - _STRUCT_
TIMESPEC - _SYS_
CDEFS_ H - _SYS_
SELECT_ H - _SYS_
TYPES_ H - _THREAD_
MUTEX_ INTERNAL_ H - _THREAD_
SHARED_ TYPES_ H - __
BIG_ ENDIAN - __
BIT_ TYPES_ DEFINED__ - __
BYTE_ ORDER - __
FD_ SETSIZE - __
FLOAT_ WORD_ ORDER - __
GLIBC_ MINOR__ - __
GLIBC_ USE_ DEPRECATED_ GETS - __
GLIBC_ USE_ DEPRECATED_ SCANF - __
GLIBC_ USE_ ISOC2X - __
GLIBC__ - __
GNU_ LIBRARY__ - __
HAVE_ GENERIC_ SELECTION - __
INO_ T_ MATCHES_ INO64_ T - __
KERNEL_ OLD_ TIMEVAL_ MATCHES_ TIMEVA L64 - __
LDOUBLE_ REDIRECTS_ TO_ FLOA T128_ ABI - __
LITTLE_ ENDIAN - __
OFF_ T_ MATCHES_ OFF64_ T - __
PDP_ ENDIAN - __
PTHREAD_ MUTEX_ HAVE_ PREV - __
RLIM_ T_ MATCHES_ RLIM64_ T - __
SIZEOF_ PTHREAD_ ATTR_ T - __
SIZEOF_ PTHREAD_ BARRIERATTR_ T - __
SIZEOF_ PTHREAD_ BARRIER_ T - __
SIZEOF_ PTHREAD_ CONDATTR_ T - __
SIZEOF_ PTHREAD_ COND_ T - __
SIZEOF_ PTHREAD_ MUTEXATTR_ T - __
SIZEOF_ PTHREAD_ MUTEX_ T - __
SIZEOF_ PTHREAD_ RWLOCKATTR_ T - __
SIZEOF_ PTHREAD_ RWLOCK_ T - __
STATFS_ MATCHES_ STATF S64 - __
STDC_ IEC_ 559_ COMPLEX__ - __
STDC_ IEC_ 559__ - __
STDC_ IEC_ 60559_ BFP__ - __
STDC_ IEC_ 60559_ COMPLEX__ - __
STDC_ ISO_ 10646__ - __
SYSCALL_ WORDSIZE - __
TIMESIZE - __
USE_ ATFILE - __
USE_ FORTIFY_ LEVEL - __
USE_ ISOC11 - __
USE_ ISOC95 - __
USE_ ISOC99 - __
USE_ MISC - __
USE_ POSIX - __
USE_ POSI X2 - __
USE_ POSI X199309 - __
USE_ POSI X199506 - __
USE_ POSIX_ IMPLICITLY - __
USE_ XOPE N2K - __
USE_ XOPE N2K8 - __
WORDSIZE - __
WORDSIZE_ TIME64_ COMPA T32 - __
clock_ t_ defined - __
clockid_ t_ defined - __
glibc_ c99_ flexarr_ available - __
have_ pthread_ attr_ t - __
sigset_ t_ defined - __
time_ t_ defined - __
timer_ t_ defined - __
timeval_ defined
Functions§
- mio_
close ⚠ - mio_eof⚠
- mio_
nfds ⚠ - mio_
open ⚠ - mio_
pollfd ⚠ - mio_
read ⚠ - mio_
revents ⚠ - mio_
rmidi_ ⚠fdopen - mio_
rmidi_ ⚠getfd - mio_
write ⚠ - pselect⚠
- select⚠
- sio_
close ⚠ - sio_eof⚠
- sio_
getcap ⚠ - sio_
getpar ⚠ - sio_
initpar ⚠ - sio_
nfds ⚠ - sio_
onmove ⚠ - sio_
onvol ⚠ - sio_
open ⚠ - sio_
pollfd ⚠ - sio_
read ⚠ - sio_
revents ⚠ - sio_
setpar ⚠ - sio_
setvol ⚠ - sio_
start ⚠ - sio_
stop ⚠ - sio_
sun_ ⚠fdopen - sio_
sun_ ⚠getfd - sio_
write ⚠ - sioctl_
close ⚠ - sioctl_
eof ⚠ - sioctl_
nfds ⚠ - sioctl_
ondesc ⚠ - sioctl_
onval ⚠ - sioctl_
open ⚠ - sioctl_
pollfd ⚠ - sioctl_
revents ⚠ - sioctl_
setval ⚠ - sioctl_
sun_ ⚠fdopen - sioctl_
sun_ ⚠getfd
Type Aliases§
- __
blkcnt64_ t - __
blkcnt_ t - __
blksize_ t - __
caddr_ t - __
clock_ t - __
clockid_ t - __
daddr_ t - __dev_t
- __
fd_ mask - __
fsblkcnt64_ t - __
fsblkcnt_ t - __
fsfilcnt64_ t - __
fsfilcnt_ t - __
fsword_ t - __gid_t
- __id_t
- __
ino64_ t - __ino_t
- __
int8_ t - __
int16_ t - __
int32_ t - __
int64_ t - __
int_ least8_ t - __
int_ least16_ t - __
int_ least32_ t - __
int_ least64_ t - __
intmax_ t - __
intptr_ t - __key_t
- __
loff_ t - __
mode_ t - __
nlink_ t - __
off64_ t - __off_t
- __pid_t
- __
pthread_ list_ t - __
pthread_ slist_ t - __
quad_ t - __
rlim64_ t - __
rlim_ t - __
sig_ atomic_ t - __
socklen_ t - __
ssize_ t - __
suseconds64_ t - __
suseconds_ t - __
syscall_ slong_ t - __
syscall_ ulong_ t - __
thrd_ t - __
time_ t - __
timer_ t - __tss_t
- __
u_ char - __u_int
- __
u_ long - __
u_ quad_ t - __
u_ short - __uid_t
- __
uint8_ t - __
uint16_ t - __
uint32_ t - __
uint64_ t - __
uint_ least8_ t - __
uint_ least16_ t - __
uint_ least32_ t - __
uint_ least64_ t - __
uintmax_ t - __
useconds_ t - blkcnt_
t - blksize_
t - caddr_t
- clock_t
- clockid_
t - daddr_t
- dev_t
- fd_mask
- fsblkcnt_
t - fsfilcnt_
t - fsid_t
- gid_t
- id_t
- ino_t
- key_t
- loff_t
- mode_t
- nlink_t
- off_t
- pid_t
- pollfd
- pthread_
key_ t - pthread_
once_ t - pthread_
spinlock_ t - pthread_
t - quad_t
- register_
t - sigset_
t - size_t
- ssize_t
- suseconds_
t - time_t
- timer_t
- u_char
- u_int
- u_
int8_ t - u_
int16_ t - u_
int32_ t - u_
int64_ t - u_long
- u_
quad_ t - u_short
- uid_t
- uint
- ulong
- ushort