Debian Codegraph @

third_party/rust/cubeb/src/lib.rs

raw
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/kinetiknz/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 //! To get started, have a look at the [`StreamBuilder`]
15
16 // Copyright © 2017-2018 Mozilla Foundation
17 //
18 // This program is made available under an ISC-style license. See the
19 // accompanying file LICENSE for details.
20
21 extern crate cubeb_core;
22
23 mod context;
24 mod frame;
25 mod sample;
26 mod stream;
27
28 pub use context::*;
29 // Re-export cubeb_core types
30 pub use cubeb_core::{
31 ffi, ChannelLayout, Context, ContextRef, Device, DeviceCollection, DeviceCollectionRef,
32 DeviceFormat, DeviceId, DeviceInfo, DeviceInfoRef, DeviceRef, DeviceState, DeviceType, Error,
33 ErrorCode, LogLevel, Result, SampleFormat, State, StreamParams, StreamParamsBuilder,
34 StreamParamsRef, StreamPrefs, StreamRef,
35 };
36 pub use frame::*;
37 pub use sample::*;
38 pub use stream::*;