2013-05-28 11:19:07 +00:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* 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
|
2016-06-29 09:30:13 +00:00
|
|
|
* https://webaudio.github.io/web-audio-api/
|
2013-05-28 11:19:07 +00:00
|
|
|
*
|
|
|
|
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
|
|
|
* liability, trademark and document use rules apply.
|
|
|
|
*/
|
|
|
|
|
2016-12-21 09:52:50 +00:00
|
|
|
dictionary PeriodicWaveConstraints {
|
|
|
|
boolean disableNormalization = false;
|
|
|
|
};
|
|
|
|
|
2016-12-15 18:24:42 +00:00
|
|
|
dictionary PeriodicWaveOptions : PeriodicWaveConstraints {
|
|
|
|
sequence<float> real;
|
|
|
|
sequence<float> imag;
|
2013-05-28 11:19:07 +00:00
|
|
|
};
|
|
|
|
|
2016-12-15 18:24:42 +00:00
|
|
|
[Pref="dom.webaudio.enabled",
|
2016-12-19 23:38:42 +00:00
|
|
|
// XXXbz The second arg is not optional in the spec, but that looks
|
|
|
|
// like a spec bug to me. See
|
|
|
|
// <https://github.com/WebAudio/web-audio-api/issues/1116>.
|
2016-12-21 09:52:50 +00:00
|
|
|
Constructor(BaseAudioContext context, optional PeriodicWaveOptions options)]
|
2016-12-15 18:24:42 +00:00
|
|
|
interface PeriodicWave {
|
|
|
|
};
|