mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-02 22:29:10 +00:00
WebAudio: Stub AudioBufferSourceNode
This commit is contained in:
parent
92f6336fe8
commit
6672fb4b47
Notes:
github-actions[bot]
2024-07-23 07:26:05 +00:00
Author: https://github.com/bbb651 🔰
Commit: 6672fb4b47
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/750
12 changed files with 136 additions and 2 deletions
26
Userland/Libraries/LibWeb/WebAudio/AudioBufferSourceNode.idl
Normal file
26
Userland/Libraries/LibWeb/WebAudio/AudioBufferSourceNode.idl
Normal file
|
@ -0,0 +1,26 @@
|
|||
#import <WebAudio/AudioBuffer.idl>
|
||||
#import <WebAudio/AudioParam.idl>
|
||||
#import <WebAudio/AudioScheduledSourceNode.idl>
|
||||
#import <WebAudio/BaseAudioContext.idl>
|
||||
|
||||
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 = {});
|
||||
[FIXME] attribute AudioBuffer? buffer;
|
||||
[FIXME] readonly attribute AudioParam playbackRate;
|
||||
[FIXME] readonly attribute AudioParam detune;
|
||||
[FIXME] attribute boolean loop;
|
||||
[FIXME] attribute double loopStart;
|
||||
[FIXME] attribute double loopEnd;
|
||||
[FIXME] undefined start(optional double when = 0, optional double offset, optional double duration);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue