diff options
author | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2018-06-30 10:45:40 +0200 |
---|---|---|
committer | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2018-07-30 14:21:42 +0200 |
commit | 3fe38a99ad39769ae676bec16ffd5b1063acae39 (patch) | |
tree | 73367cab1644e308975800e88833f54eb918a6f7 /components/script/dom/webidls/AudioBuffer.webidl | |
parent | 93990d437e013c42a991e68d082c7d2c0f018ca6 (diff) | |
download | servo-3fe38a99ad39769ae676bec16ffd5b1063acae39.tar.gz servo-3fe38a99ad39769ae676bec16ffd5b1063acae39.zip |
AudioBuffer stub
Diffstat (limited to 'components/script/dom/webidls/AudioBuffer.webidl')
-rw-r--r-- | components/script/dom/webidls/AudioBuffer.webidl | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/components/script/dom/webidls/AudioBuffer.webidl b/components/script/dom/webidls/AudioBuffer.webidl new file mode 100644 index 00000000000..7ec015ecb2f --- /dev/null +++ b/components/script/dom/webidls/AudioBuffer.webidl @@ -0,0 +1,29 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +/* + * The origin of this IDL file is + * https://webaudio.github.io/web-audio-api/#audiobuffer + */ + +dictionary AudioBufferOptions { + unsigned long numberOfChannels = 1; + required unsigned long length; + required float sampleRate; +}; + +[Exposed=Window, + Constructor (AudioBufferOptions options)] +interface AudioBuffer { + readonly attribute float sampleRate; + readonly attribute unsigned long length; + readonly attribute double duration; + readonly attribute unsigned long numberOfChannels; +// Float32Array getChannelData(unsigned long channel); +// void copyFromChannel(Float32Array destination, +// unsigned long channelNumber, +// optional unsigned long startInChannel = 0); +// void copyToChannel (Float32Array source, +// unsigned long channelNumber, +// optional unsigned long startInChannel = 0); +}; |