pub trait AudioParamMethods<D: DomTypes> {
Show 14 methods
// Required methods
fn Value(&self) -> Finite<f32>;
fn SetValue(&self, value: Finite<f32>);
fn AutomationRate(&self) -> AutomationRate;
fn SetAutomationRate(&self, value: AutomationRate) -> Result<(), Error>;
fn DefaultValue(&self) -> Finite<f32>;
fn MinValue(&self) -> Finite<f32>;
fn MaxValue(&self) -> Finite<f32>;
fn SetValueAtTime(
&self,
value: Finite<f32>,
startTime: Finite<f64>,
) -> Result<Root<Dom<AudioParam>>, Error>;
fn LinearRampToValueAtTime(
&self,
value: Finite<f32>,
endTime: Finite<f64>,
) -> Result<Root<Dom<AudioParam>>, Error>;
fn ExponentialRampToValueAtTime(
&self,
value: Finite<f32>,
endTime: Finite<f64>,
) -> Result<Root<Dom<AudioParam>>, Error>;
fn SetTargetAtTime(
&self,
target: Finite<f32>,
startTime: Finite<f64>,
timeConstant: Finite<f32>,
) -> Result<Root<Dom<AudioParam>>, Error>;
fn SetValueCurveAtTime(
&self,
values: Vec<Finite<f32>>,
startTime: Finite<f64>,
duration: Finite<f64>,
) -> Result<Root<Dom<AudioParam>>, Error>;
fn CancelScheduledValues(
&self,
cancelTime: Finite<f64>,
) -> Result<Root<Dom<AudioParam>>, Error>;
fn CancelAndHoldAtTime(
&self,
cancelTime: Finite<f64>,
) -> Result<Root<Dom<AudioParam>>, Error>;
}