pub enum Center {
Unity,
Minus3Db,
}Expand description
Which centre loss a PanLaw::EqualPower has.
§Example
use psx_sfx::space::{Center, PanLaw};
let (l, r) = PanLaw::EqualPower(Center::Unity).apply(8000, 0);
assert_eq!((l, r), (8000, 8000));
let (l, _) = PanLaw::EqualPower(Center::Minus3Db).apply(8000, 0);
assert!(l < 8000);Variants§
Unity
A centred sound keeps its full level on both ears and the louder side of an off-centre sound clamps at that level: a loud mono sound loses nothing, but power is no longer exactly constant near the middle.
Minus3Db
The textbook law: a centred sound is 3 dB down on each ear, and the sum of squares is constant across the whole pan range.
Trait Implementations§
impl Copy for Center
impl Eq for Center
impl StructuralPartialEq for Center
Auto Trait Implementations§
impl Freeze for Center
impl RefUnwindSafe for Center
impl Send for Center
impl Sync for Center
impl Unpin for Center
impl UnsafeUnpin for Center
impl UnwindSafe for Center
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)