minimp3_ex_sys/lib.rs
1//! Raw FFI bindings to the [`minimp3_ex`] library for reading MP3 audio files.
2//!
3//! [`minimp3_ex`]: https://github.com/lieff/minimp3/blob/master/minimp3_ex.h
4//!
5//! The feature `float-output` changes the output data type ([`mp3d_sample_t`])
6//! from `i16` to `f32`.
7//!
8//! The function [`mp3dec_f32_to_s16()`] is only available if the `float-output`
9//! feature is enabled.
10//!
11//! The functions ending in `_w` are only available on Windows.
12
13#![no_std]
14#![allow(non_camel_case_types)]
15
16include!("bindings.rs");
17
18#[cfg(feature = "float-output")]
19pub type mp3d_sample_t = f32;
20
21#[cfg(not(feature = "float-output"))]
22/// Type for decoded samples.
23///
24/// If the `float-output` feature is used, this is `f32`.
25pub type mp3d_sample_t = i16;