mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 09:46:04 -05:00
24 lines
979 B
Text
24 lines
979 B
Text
// https://webaudio.github.io/web-audio-api/#enumdef-automationrate
|
|
enum AutomationRate {
|
|
"a-rate",
|
|
"k-rate"
|
|
};
|
|
|
|
// https://webaudio.github.io/web-audio-api/#AudioParam
|
|
[Exposed=Window]
|
|
interface AudioParam {
|
|
attribute float value;
|
|
attribute AutomationRate automationRate;
|
|
readonly attribute float defaultValue;
|
|
readonly attribute float minValue;
|
|
readonly attribute float maxValue;
|
|
AudioParam setValueAtTime(float value, double startTime);
|
|
AudioParam linearRampToValueAtTime(float value, double endTime);
|
|
AudioParam exponentialRampToValueAtTime(float value, double endTime);
|
|
AudioParam setTargetAtTime(float target, double startTime, float timeConstant);
|
|
AudioParam setValueCurveAtTime(sequence<float> values,
|
|
double startTime,
|
|
double duration);
|
|
AudioParam cancelScheduledValues(double cancelTime);
|
|
AudioParam cancelAndHoldAtTime(double cancelTime);
|
|
};
|