Debian Codegraph @

third_party/rust/cubeb-sys/src/format.rs

raw
1 // Copyright © 2017-2018 Mozilla Foundation
2 //
3 // This program is made available under an ISC-style license. See the
4 // accompanying file LICENSE for details.
5
6 cubeb_enum! {
7 pub enum cubeb_sample_format {
8 CUBEB_SAMPLE_S16LE,
9 CUBEB_SAMPLE_S16BE,
10 CUBEB_SAMPLE_FLOAT32LE,
11 CUBEB_SAMPLE_FLOAT32BE,
12 }
13 }
14
15 #[cfg(target_endian = "big")]
16 pub const CUBEB_SAMPLE_S16NE: cubeb_sample_format = CUBEB_SAMPLE_S16BE;
17 #[cfg(target_endian = "big")]
18 pub const CUBEB_SAMPLE_FLOAT32NE: cubeb_sample_format = CUBEB_SAMPLE_FLOAT32BE;
19 #[cfg(target_endian = "little")]
20 pub const CUBEB_SAMPLE_S16NE: cubeb_sample_format = CUBEB_SAMPLE_S16LE;
21 #[cfg(target_endian = "little")]
22 pub const CUBEB_SAMPLE_FLOAT32NE: cubeb_sample_format = CUBEB_SAMPLE_FLOAT32LE;