Files
ladybird/Libraries/LibWeb/WebAudio/AudioBufferSourceNode.idl
Shannon Booth cc6e048bd6 LibWeb+LibIDL: Remove support for #import directives during parsing
These no longer serve any purpose now that we run the IDLGenerator
on all of these files at once.
2026-04-24 20:08:29 +02:00

22 lines
744 B
Plaintext

dictionary AudioBufferSourceOptions {
AudioBuffer? buffer;
float detune = 0;
boolean loop = false;
double loopEnd = 0;
double loopStart = 0;
float playbackRate = 1;
};
// https://webaudio.github.io/web-audio-api/#AudioBufferSourceNode
[Exposed=Window]
interface AudioBufferSourceNode : AudioScheduledSourceNode {
constructor(BaseAudioContext context, optional AudioBufferSourceOptions options = {});
attribute AudioBuffer? buffer;
readonly attribute AudioParam playbackRate;
readonly attribute AudioParam detune;
attribute boolean loop;
attribute double loopStart;
attribute double loopEnd;
undefined start(optional double when = 0, optional double offset, optional double duration);
};