1pub mod flag;
2pub use self::flag::Flags;
3
4pub mod dither;
5pub use self::dither::Dither;
6
7pub mod engine;
8pub use self::engine::Engine;
9
10pub mod filter;
11pub use self::filter::Filter;
12
13pub mod delay;
14pub use self::delay::Delay;
15
16pub mod context;
17pub use self::context::Context;
18
19mod extensions;
20
21use std::ffi::CStr;
22use std::str::from_utf8_unchecked;
23
24use ffi::*;
25
26pub fn version() -> u32 {
27 unsafe { swresample_version() }
28}
29
30pub fn configuration() -> &'static str {
31 unsafe { from_utf8_unchecked(CStr::from_ptr(swresample_configuration()).to_bytes()) }
32}
33
34pub fn license() -> &'static str {
35 unsafe { from_utf8_unchecked(CStr::from_ptr(swresample_license()).to_bytes()) }
36}
37