cubeb/
lib.rs

1//! # libcubeb bindings for rust
2//!
3//! This library contains bindings to the [cubeb][1] C library which
4//! is used to interact with system audio.  The library itself is a
5//! work in progress and is likely lacking documentation and test.
6//!
7//! [1]: https://github.com/mozilla/cubeb/
8//!
9//! The cubeb-rs library exposes the user API of libcubeb.  It doesn't
10//! expose the internal interfaces, so isn't suitable for extending
11//! libcubeb. See [cubeb-pulse-rs][2] for an example of extending
12//! libcubeb via implementing a cubeb backend in rust.
13//!
14//! [2]: https://github.com/mozilla/cubeb-pulse-rs/
15//!
16//! To get started, have a look at the [`StreamBuilder`]
17
18// Copyright © 2017-2018 Mozilla Foundation
19//
20// This program is made available under an ISC-style license.  See the
21// accompanying file LICENSE for details.
22
23extern crate cubeb_core;
24
25mod context;
26mod frame;
27mod sample;
28mod stream;
29
30pub use context::*;
31// Re-export cubeb_core types
32pub use cubeb_core::{
33    ffi, ChannelLayout, Context, ContextRef, Device, DeviceCollection, DeviceCollectionRef,
34    DeviceFormat, DeviceId, DeviceInfo, DeviceInfoRef, DeviceRef, DeviceState, DeviceType, Error,
35    LogLevel, Result, SampleFormat, State, StreamParams, StreamParamsBuilder, StreamParamsRef,
36    StreamPrefs, StreamRef,
37};
38pub use frame::*;
39pub use sample::*;
40pub use stream::*;