Enum kira::PlaybackRate
source · pub enum PlaybackRate {
Factor(f64),
Semitones(f64),
}
Expand description
How quickly a sound is played.
Variants§
Factor(f64)
The sound is played at a speed factor of the original playback rate.
For example, PlaybackRate::Factor(2.0)
means
the sound is played twice as fast as normal.
Semitones(f64)
The sound is played faster or slower so that the pitch of the sound is adjusted by the given number of semitones.
Implementations§
source§impl PlaybackRate
impl PlaybackRate
Trait Implementations§
source§impl Clone for PlaybackRate
impl Clone for PlaybackRate
source§fn clone(&self) -> PlaybackRate
fn clone(&self) -> PlaybackRate
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PlaybackRate
impl Debug for PlaybackRate
source§impl From<f64> for PlaybackRate
impl From<f64> for PlaybackRate
source§impl PartialEq<PlaybackRate> for PlaybackRate
impl PartialEq<PlaybackRate> for PlaybackRate
source§fn eq(&self, other: &PlaybackRate) -> bool
fn eq(&self, other: &PlaybackRate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.