Trait awedio::sounds::wrappers::SetVolume

source ·
pub trait SetVolume {
    // Required method
    fn set_volume(&mut self, multiplier: f32);
}
Expand description

A sound that can have the loudness adjusted.

Required Methods§

source

fn set_volume(&mut self, multiplier: f32)

Change the loudness.

The samples are multiplied by multiplier so 1.0 would leave the Sound unchanged.

Implementors§

source§

impl<S> SetVolume for AdjustableSpeed<S>
where S: Sound + SetVolume,

source§

impl<S> SetVolume for AdjustableVolume<S>
where S: Sound,

source§

impl<S> SetVolume for Pausable<S>
where S: Sound + SetVolume,

source§

impl<S> SetVolume for S
where S: Wrapper, <S as Wrapper>::Inner: SetVolume,