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