forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
84
Kha/Tools/macos/std/js/html/audio/AnalyserNode.hx
Normal file
84
Kha/Tools/macos/std/js/html/audio/AnalyserNode.hx
Normal file
@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\AnalyserNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
/**
|
||||
The `AnalyserNode` interface represents a node able to provide real-time frequency and time-domain analysis information. It is an `AudioNode` that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations.
|
||||
|
||||
Documentation [AnalyserNode](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode>
|
||||
**/
|
||||
@:native("AnalyserNode")
|
||||
extern class AnalyserNode extends AudioNode {
|
||||
|
||||
/**
|
||||
Is an unsigned long value representing the size of the FFT (Fast Fourier Transform) to be used to determine the frequency domain.
|
||||
**/
|
||||
var fftSize : Int;
|
||||
|
||||
/**
|
||||
Is an unsigned long value half that of the FFT size. This generally equates to the number of data values you will have to play with for the visualization.
|
||||
**/
|
||||
var frequencyBinCount(default,null) : Int;
|
||||
|
||||
/**
|
||||
Is a double value representing the minimum power value in the scaling range for the FFT analysis data, for conversion to unsigned byte values — basically, this specifies the minimum value for the range of results when using `getByteFrequencyData()`.
|
||||
**/
|
||||
var minDecibels : Float;
|
||||
|
||||
/**
|
||||
Is a double value representing the maximum power value in the scaling range for the FFT analysis data, for conversion to unsigned byte values — basically, this specifies the maximum value for the range of results when using `getByteFrequencyData()`.
|
||||
**/
|
||||
var maxDecibels : Float;
|
||||
|
||||
/**
|
||||
Is a double value representing the averaging constant with the last analysis frame — basically, it makes the transition between values over time smoother.
|
||||
**/
|
||||
var smoothingTimeConstant : Float;
|
||||
|
||||
/** @throws DOMError */
|
||||
function new( context : BaseAudioContext, ?options : AnalyserOptions ) : Void;
|
||||
|
||||
/**
|
||||
Copies the current frequency data into a `Float32Array` array passed into it.
|
||||
**/
|
||||
function getFloatFrequencyData( array : js.lib.Float32Array ) : Void;
|
||||
|
||||
/**
|
||||
Copies the current frequency data into a `Uint8Array` (unsigned byte array) passed into it.
|
||||
**/
|
||||
function getByteFrequencyData( array : js.lib.Uint8Array ) : Void;
|
||||
|
||||
/**
|
||||
Copies the current waveform, or time-domain, data into a `Float32Array` array passed into it.
|
||||
**/
|
||||
function getFloatTimeDomainData( array : js.lib.Float32Array ) : Void;
|
||||
|
||||
/**
|
||||
Copies the current waveform, or time-domain, data into a `Uint8Array` (unsigned byte array) passed into it.
|
||||
**/
|
||||
function getByteTimeDomainData( array : js.lib.Uint8Array ) : Void;
|
||||
}
|
32
Kha/Tools/macos/std/js/html/audio/AnalyserOptions.hx
Normal file
32
Kha/Tools/macos/std/js/html/audio/AnalyserOptions.hx
Normal file
@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\AnalyserNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
typedef AnalyserOptions = AudioNodeOptions & {
|
||||
var ?fftSize : Int;
|
||||
var ?maxDecibels : Float;
|
||||
var ?minDecibels : Float;
|
||||
var ?smoothingTimeConstant : Float;
|
||||
}
|
77
Kha/Tools/macos/std/js/html/audio/AudioBuffer.hx
Normal file
77
Kha/Tools/macos/std/js/html/audio/AudioBuffer.hx
Normal file
@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\AudioBuffer.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
/**
|
||||
Objects of these types are designed to hold small audio snippets, typically less than 45 s. For longer sounds, objects implementing the `MediaElementAudioSourceNode` are more suitable. The buffer contains data in the following format: non-interleaved IEEE754 32-bit linear PCM with a nominal range between `-1` and `+1`, that is, 32bits floating point buffer, with each samples between -1.0 and 1.0. If the `AudioBuffer` has multiple channels, they are stored in separate buffer.
|
||||
|
||||
Documentation [AudioBuffer](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer>
|
||||
**/
|
||||
@:native("AudioBuffer")
|
||||
extern class AudioBuffer {
|
||||
|
||||
/**
|
||||
Returns a float representing the sample rate, in samples per second, of the PCM data stored in the buffer.
|
||||
**/
|
||||
var sampleRate(default,null) : Float;
|
||||
|
||||
/**
|
||||
Returns an integer representing the length, in sample-frames, of the PCM data stored in the buffer.
|
||||
**/
|
||||
var length(default,null) : Int;
|
||||
|
||||
/**
|
||||
Returns a double representing the duration, in seconds, of the PCM data stored in the buffer.
|
||||
**/
|
||||
var duration(default,null) : Float;
|
||||
|
||||
/**
|
||||
Returns an integer representing the number of discrete audio channels described by the PCM data stored in the buffer.
|
||||
**/
|
||||
var numberOfChannels(default,null) : Int;
|
||||
|
||||
/** @throws DOMError */
|
||||
function new( options : AudioBufferOptions ) : Void;
|
||||
|
||||
/**
|
||||
Returns a `Float32Array` containing the PCM data associated with the channel, defined by the `channel` parameter (with `0` representing the first channel).
|
||||
@throws DOMError
|
||||
**/
|
||||
function getChannelData( channel : Int ) : js.lib.Float32Array;
|
||||
|
||||
/**
|
||||
Copies the samples from the specified channel of the `AudioBuffer` to the `destination` array.
|
||||
@throws DOMError
|
||||
**/
|
||||
function copyFromChannel( destination : js.lib.Float32Array, channelNumber : Int, startInChannel : Int = 0 ) : Void;
|
||||
|
||||
/**
|
||||
Copies the samples to the specified channel of the `AudioBuffer`, from the `source` array.
|
||||
@throws DOMError
|
||||
**/
|
||||
function copyToChannel( source : js.lib.Float32Array, channelNumber : Int, startInChannel : Int = 0 ) : Void;
|
||||
}
|
31
Kha/Tools/macos/std/js/html/audio/AudioBufferOptions.hx
Normal file
31
Kha/Tools/macos/std/js/html/audio/AudioBufferOptions.hx
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\AudioBuffer.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
typedef AudioBufferOptions = {
|
||||
var length : Int;
|
||||
var ?numberOfChannels : Int;
|
||||
var sampleRate : Float;
|
||||
}
|
75
Kha/Tools/macos/std/js/html/audio/AudioBufferSourceNode.hx
Normal file
75
Kha/Tools/macos/std/js/html/audio/AudioBufferSourceNode.hx
Normal file
@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\AudioBufferSourceNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
/**
|
||||
The `AudioBufferSourceNode` interface is an `AudioScheduledSourceNode` which represents an audio source consisting of in-memory audio data, stored in an `AudioBuffer`. It's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network.
|
||||
|
||||
Documentation [AudioBufferSourceNode](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode>
|
||||
**/
|
||||
@:native("AudioBufferSourceNode")
|
||||
extern class AudioBufferSourceNode extends AudioScheduledSourceNode {
|
||||
|
||||
/**
|
||||
An `AudioBuffer` that defines the audio asset to be played, or when set to the value `null`, defines a single channel of silence (in which every sample is 0.0).
|
||||
**/
|
||||
var buffer : AudioBuffer;
|
||||
|
||||
/**
|
||||
An a-rate `AudioParam` that defines the speed factor at which the audio asset will be played, where a value of 1.0 is the sound's natural sampling rate. Since no pitch correction is applied on the output, this can be used to change the pitch of the sample. This value is compounded with `detune` to determine the final playback rate.
|
||||
**/
|
||||
var playbackRate(default,null) : AudioParam;
|
||||
|
||||
/**
|
||||
Is a k-rate `AudioParam` representing detuning of playback in cents. This value is compounded with `playbackRate` to determine the speed at which the sound is played. Its default value is `0` (meaning no detuning), and its nominal range is -∞ to ∞.
|
||||
**/
|
||||
var detune(default,null) : AudioParam;
|
||||
|
||||
/**
|
||||
A Boolean attribute indicating if the audio asset must be replayed when the end of the `AudioBuffer` is reached. Its default value is `false`.
|
||||
**/
|
||||
var loop : Bool;
|
||||
|
||||
/**
|
||||
A floating-point value indicating the time, in seconds, at which playback of the `AudioBuffer` must begin when `loop` is `true`. Its default value is `0` (meaning that at the beginning of each loop, playback begins at the start of the audio buffer).
|
||||
**/
|
||||
var loopStart : Float;
|
||||
|
||||
/**
|
||||
A floating-point number indicating the time, in seconds, at which playback of the `AudioBuffer` stops and loops back to the time indicated by `loopStart`, if `loop` is `true`. The default value is `0`.
|
||||
**/
|
||||
var loopEnd : Float;
|
||||
|
||||
/** @throws DOMError */
|
||||
function new( context : BaseAudioContext, ?options : AudioBufferSourceOptions ) : Void;
|
||||
|
||||
/**
|
||||
Used to schedule playback of the audio data contained in the buffer, or to begin playback immediately.
|
||||
@throws DOMError
|
||||
**/
|
||||
function start( when : Float = 0.0, grainOffset : Float = 0.0, ?grainDuration : Float ) : Void;
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\AudioBufferSourceNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
typedef AudioBufferSourceOptions = {
|
||||
var ?buffer : AudioBuffer;
|
||||
var ?detune : Float;
|
||||
var ?loop : Bool;
|
||||
var ?loopEnd : Float;
|
||||
var ?loopStart : Float;
|
||||
var ?playbackRate : Float;
|
||||
}
|
70
Kha/Tools/macos/std/js/html/audio/AudioContext.hx
Normal file
70
Kha/Tools/macos/std/js/html/audio/AudioContext.hx
Normal file
@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\AudioContext.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
import js.lib.Promise;
|
||||
|
||||
/**
|
||||
The `AudioContext` interface represents an audio-processing graph built from audio modules linked together, each represented by an `AudioNode`.
|
||||
|
||||
Documentation [AudioContext](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/AudioContext>
|
||||
**/
|
||||
@:native("AudioContext")
|
||||
extern class AudioContext extends BaseAudioContext {
|
||||
/** @throws DOMError */
|
||||
function new( ?contextOptions : AudioContextOptions ) : Void;
|
||||
|
||||
/**
|
||||
Suspends the progression of time in the audio context, temporarily halting audio hardware access and reducing CPU/battery usage in the process.
|
||||
@throws DOMError
|
||||
**/
|
||||
function suspend() : Promise<Void>;
|
||||
|
||||
/**
|
||||
Closes the audio context, releasing any system audio resources that it uses.
|
||||
@throws DOMError
|
||||
**/
|
||||
function close() : Promise<Void>;
|
||||
|
||||
/**
|
||||
Creates a `MediaElementAudioSourceNode` associated with an `HTMLMediaElement`. This can be used to play and manipulate audio from `video` or `audio` elements.
|
||||
@throws DOMError
|
||||
**/
|
||||
function createMediaElementSource( mediaElement : js.html.MediaElement ) : MediaElementAudioSourceNode;
|
||||
|
||||
/**
|
||||
Creates a `MediaStreamAudioSourceNode` associated with a `MediaStream` representing an audio stream which may come from the local computer microphone or other sources.
|
||||
@throws DOMError
|
||||
**/
|
||||
function createMediaStreamSource( mediaStream : js.html.MediaStream ) : MediaStreamAudioSourceNode;
|
||||
|
||||
/**
|
||||
Creates a `MediaStreamAudioDestinationNode` associated with a `MediaStream` representing an audio stream which may be stored in a local file or sent to another computer.
|
||||
@throws DOMError
|
||||
**/
|
||||
function createMediaStreamDestination() : MediaStreamAudioDestinationNode;
|
||||
}
|
40
Kha/Tools/macos/std/js/html/audio/AudioContextOptions.hx
Normal file
40
Kha/Tools/macos/std/js/html/audio/AudioContextOptions.hx
Normal file
@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\AudioContext.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
/**
|
||||
The `AudioContextOptions` dictionary is used to specify configuration options when constructing a new `AudioContext` object to represent a graph of web audio nodes.
|
||||
|
||||
Documentation [AudioContextOptions](https://developer.mozilla.org/en-US/docs/Web/API/AudioContextOptions) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/AudioContextOptions$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/AudioContextOptions>
|
||||
**/
|
||||
typedef AudioContextOptions = {
|
||||
|
||||
/**
|
||||
The `BaseAudioContext.sampleRate` to be used by the `AudioContext`, specified in samples per second. The value may be any value supported by `AudioBuffer`. If not specified, the preferred sample rate for the context's output device is used by default.
|
||||
**/
|
||||
var ?sampleRate : Float;
|
||||
}
|
31
Kha/Tools/macos/std/js/html/audio/AudioContextState.hx
Normal file
31
Kha/Tools/macos/std/js/html/audio/AudioContextState.hx
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\BaseAudioContext.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
enum abstract AudioContextState(String) {
|
||||
var SUSPENDED = "suspended";
|
||||
var RUNNING = "running";
|
||||
var CLOSED = "closed";
|
||||
}
|
42
Kha/Tools/macos/std/js/html/audio/AudioDestinationNode.hx
Normal file
42
Kha/Tools/macos/std/js/html/audio/AudioDestinationNode.hx
Normal file
@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\AudioDestinationNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
/**
|
||||
`AudioDestinationNode` has no output (as it is the output, no more `AudioNode` can be linked after it in the audio graph) and one input. The number of channels in the input must be between `0` and the `maxChannelCount` value or an exception is raised.
|
||||
|
||||
Documentation [AudioDestinationNode](https://developer.mozilla.org/en-US/docs/Web/API/AudioDestinationNode) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/AudioDestinationNode$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/AudioDestinationNode>
|
||||
**/
|
||||
@:native("AudioDestinationNode")
|
||||
extern class AudioDestinationNode extends AudioNode {
|
||||
|
||||
/**
|
||||
Is an `unsigned long` defining the maximum number of channels that the physical device can handle.
|
||||
**/
|
||||
var maxChannelCount(default,null) : Int;
|
||||
|
||||
}
|
38
Kha/Tools/macos/std/js/html/audio/AudioListener.hx
Normal file
38
Kha/Tools/macos/std/js/html/audio/AudioListener.hx
Normal file
@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\AudioListener.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
/**
|
||||
It is important to note that there is only one listener per context and that it isn't an `AudioNode`.
|
||||
|
||||
Documentation [AudioListener](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/AudioListener>
|
||||
**/
|
||||
@:native("AudioListener")
|
||||
extern class AudioListener {
|
||||
function setPosition( x : Float, y : Float, z : Float ) : Void;
|
||||
function setOrientation( x : Float, y : Float, z : Float, xUp : Float, yUp : Float, zUp : Float ) : Void;
|
||||
}
|
88
Kha/Tools/macos/std/js/html/audio/AudioNode.hx
Normal file
88
Kha/Tools/macos/std/js/html/audio/AudioNode.hx
Normal file
@ -0,0 +1,88 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\AudioNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
/**
|
||||
The `AudioNode` interface is a generic interface for representing an audio processing module. Examples include:
|
||||
|
||||
Documentation [AudioNode](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/AudioNode>
|
||||
**/
|
||||
@:native("AudioNode")
|
||||
extern class AudioNode extends js.html.EventTarget {
|
||||
|
||||
/**
|
||||
Returns the associated `BaseAudioContext`, that is the object representing the processing graph the node is participating in.
|
||||
**/
|
||||
var context(default,null) : BaseAudioContext;
|
||||
|
||||
/**
|
||||
Returns the number of inputs feeding the node. Source nodes are defined as nodes having a `numberOfInputs` property with a value of `0`.
|
||||
**/
|
||||
var numberOfInputs(default,null) : Int;
|
||||
|
||||
/**
|
||||
Returns the number of outputs coming out of the node. Destination nodes — like `AudioDestinationNode` — have a value of `0` for this attribute.
|
||||
**/
|
||||
var numberOfOutputs(default,null) : Int;
|
||||
|
||||
/**
|
||||
Represents an integer used to determine how many channels are used when up-mixing and down-mixing connections to any inputs to the node. Its usage and precise definition depend on the value of `AudioNode.channelCountMode`.
|
||||
**/
|
||||
var channelCount : Int;
|
||||
|
||||
/**
|
||||
Represents an enumerated value describing the way channels must be matched between the node's inputs and outputs.
|
||||
**/
|
||||
var channelCountMode : ChannelCountMode;
|
||||
|
||||
/**
|
||||
Represents an enumerated value describing the meaning of the channels. This interpretation will define how audio up-mixing and down-mixing will happen.
|
||||
|
||||
The possible values are `"speakers"` or `"discrete"`.
|
||||
**/
|
||||
var channelInterpretation : ChannelInterpretation;
|
||||
|
||||
|
||||
/**
|
||||
Allows us to connect the output of this node to be input into another node, either as audio data or as the value of an `AudioParam`.
|
||||
@throws DOMError
|
||||
**/
|
||||
@:overload( function( destination : AudioNode, output : Int = 0, input : Int = 0 ) : AudioNode {} )
|
||||
function connect( destination : AudioParam, output : Int = 0 ) : Void;
|
||||
|
||||
/**
|
||||
Allows us to disconnect the current node from another one it is already connected to.
|
||||
@throws DOMError
|
||||
**/
|
||||
@:overload( function() : Void {} )
|
||||
@:overload( function( output : Int ) : Void {} )
|
||||
@:overload( function( destination : AudioNode ) : Void {} )
|
||||
@:overload( function( destination : AudioNode, output : Int ) : Void {} )
|
||||
@:overload( function( destination : AudioNode, output : Int, input : Int ) : Void {} )
|
||||
@:overload( function( destination : AudioParam ) : Void {} )
|
||||
function disconnect( destination : AudioParam, output : Int ) : Void;
|
||||
}
|
52
Kha/Tools/macos/std/js/html/audio/AudioNodeOptions.hx
Normal file
52
Kha/Tools/macos/std/js/html/audio/AudioNodeOptions.hx
Normal file
@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\AudioNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
/**
|
||||
The `AudioNodeOptions` dictionary of the Web Audio API specifies options that can be used when creating new `AudioNode` objects.
|
||||
|
||||
Documentation [AudioNodeOptions](https://developer.mozilla.org/en-US/docs/Web/API/AudioNodeOptions) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/AudioNodeOptions$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/AudioNodeOptions>
|
||||
**/
|
||||
typedef AudioNodeOptions = {
|
||||
|
||||
/**
|
||||
Represents an integer used to determine how many channels are used when up-mixing and down-mixing connections to any inputs to the node. (See `AudioNode.channelCount` for more information.) Its usage and precise definition depend on the value of `AudioNodeOptions.channelCountMode`.
|
||||
**/
|
||||
var ?channelCount : Int;
|
||||
|
||||
/**
|
||||
Represents an enumerated value describing the way channels must be matched between the node's inputs and outputs. (See `AudioNode.channelCountMode` for more information including default values.)
|
||||
**/
|
||||
var ?channelCountMode : ChannelCountMode;
|
||||
|
||||
/**
|
||||
Represents an enumerated value describing the meaning of the channels. This interpretation will define how audio up-mixing and down-mixing will happen.
|
||||
|
||||
The possible values are `"speakers"` or `"discrete"`. (See `AudioNode.channelCountMode` for more information including default values.)
|
||||
**/
|
||||
var ?channelInterpretation : ChannelInterpretation;
|
||||
}
|
93
Kha/Tools/macos/std/js/html/audio/AudioParam.hx
Normal file
93
Kha/Tools/macos/std/js/html/audio/AudioParam.hx
Normal file
@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\AudioParam.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
/**
|
||||
The Web Audio API's `AudioParam` interface represents an audio-related parameter, usually a parameter of an `AudioNode` (such as `GainNode.gain`).
|
||||
|
||||
Documentation [AudioParam](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/AudioParam>
|
||||
**/
|
||||
@:native("AudioParam")
|
||||
extern class AudioParam {
|
||||
|
||||
/**
|
||||
Represents the parameter's current volume as a floating point value; initially set to the value of `AudioParam.defaultValue`. Though it can be set, any modifications happening while there are automation events scheduled — that is events scheduled using the methods of the `AudioParam` — are ignored, without raising any exception.
|
||||
**/
|
||||
var value : Float;
|
||||
|
||||
/**
|
||||
Represents the initial volume of the attribute as defined by the specific `AudioNode` creating the `AudioParam`.
|
||||
**/
|
||||
var defaultValue(default,null) : Float;
|
||||
|
||||
/**
|
||||
Represents the minimum possible value for the parameter's nominal (effective) range.
|
||||
**/
|
||||
var minValue(default,null) : Float;
|
||||
|
||||
/**
|
||||
Represents the maximum possible value for the parameter's nominal (effective) range.
|
||||
**/
|
||||
var maxValue(default,null) : Float;
|
||||
|
||||
|
||||
/**
|
||||
Schedules an instant change to the value of the `AudioParam` at a precise time, as measured against `AudioContext.currentTime`. The new value is given by the `value` parameter.
|
||||
@throws DOMError
|
||||
**/
|
||||
function setValueAtTime( value : Float, startTime : Float ) : AudioParam;
|
||||
|
||||
/**
|
||||
Schedules a gradual linear change in the value of the `AudioParam`. The change starts at the time specified for the previous event, follows a linear ramp to the new value given in the `value` parameter, and reaches the new value at the time given in the `endTime` parameter.
|
||||
@throws DOMError
|
||||
**/
|
||||
function linearRampToValueAtTime( value : Float, endTime : Float ) : AudioParam;
|
||||
|
||||
/**
|
||||
Schedules a gradual exponential change in the value of the `AudioParam`. The change starts at the time specified for the previous event, follows an exponential ramp to the new value given in the `value` parameter, and reaches the new value at the time given in the `endTime` parameter.
|
||||
@throws DOMError
|
||||
**/
|
||||
function exponentialRampToValueAtTime( value : Float, endTime : Float ) : AudioParam;
|
||||
|
||||
/**
|
||||
Schedules the start of a change to the value of the `AudioParam`. The change starts at the time specified in `startTime` and exponentially moves towards the value given by the `target` parameter. The exponential decay rate is defined by the `timeConstant` parameter, which is a time measured in seconds.
|
||||
@throws DOMError
|
||||
**/
|
||||
function setTargetAtTime( target : Float, startTime : Float, timeConstant : Float ) : AudioParam;
|
||||
|
||||
/**
|
||||
Schedules the values of the `AudioParam` to follow a set of values, defined by an array of floating-point numbers scaled to fit into the given interval, starting at a given start time and spanning a given duration of time.
|
||||
@throws DOMError
|
||||
**/
|
||||
function setValueCurveAtTime( values : Array<Float>, startTime : Float, duration : Float ) : AudioParam;
|
||||
|
||||
/**
|
||||
Cancels all scheduled future changes to the `AudioParam`.
|
||||
@throws DOMError
|
||||
**/
|
||||
function cancelScheduledValues( startTime : Float ) : AudioParam;
|
||||
}
|
40
Kha/Tools/macos/std/js/html/audio/AudioProcessingEvent.hx
Normal file
40
Kha/Tools/macos/std/js/html/audio/AudioProcessingEvent.hx
Normal file
@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\AudioProcessingEvent.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
/**
|
||||
The Web Audio API `AudioProcessingEvent` represents events that occur when a `ScriptProcessorNode` input buffer is ready to be processed.
|
||||
|
||||
Documentation [AudioProcessingEvent](https://developer.mozilla.org/en-US/docs/Web/API/AudioProcessingEvent) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/AudioProcessingEvent$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/AudioProcessingEvent>
|
||||
**/
|
||||
@:native("AudioProcessingEvent")
|
||||
extern class AudioProcessingEvent extends js.html.Event {
|
||||
var playbackTime(default,null) : Float;
|
||||
var inputBuffer(default,null) : AudioBuffer;
|
||||
var outputBuffer(default,null) : AudioBuffer;
|
||||
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\AudioScheduledSourceNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
/**
|
||||
The `AudioScheduledSourceNode` interface—part of the Web Audio API—is a parent interface for several types of audio source node interfaces which share the ability to be started and stopped, optionally at specified times. Specifically, this interface defines the `start()` and `stop()` methods, as well as the `onended` event handler.
|
||||
|
||||
Documentation [AudioScheduledSourceNode](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode>
|
||||
**/
|
||||
@:native("AudioScheduledSourceNode")
|
||||
extern class AudioScheduledSourceNode extends AudioNode {
|
||||
|
||||
/**
|
||||
A function to be called when the `ended` event is fired, indicating that the node has finished playing.
|
||||
**/
|
||||
var onended : haxe.Constraints.Function;
|
||||
|
||||
/** @throws DOMError */
|
||||
function start( when : Float = 0.0 ) : Void;
|
||||
/** @throws DOMError */
|
||||
function stop( when : Float = 0.0 ) : Void;
|
||||
}
|
34
Kha/Tools/macos/std/js/html/audio/AudioWorkletGlobalScope.hx
Normal file
34
Kha/Tools/macos/std/js/html/audio/AudioWorkletGlobalScope.hx
Normal file
@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\AudioWorkletGlobalScope.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
@:native("AudioWorkletGlobalScope")
|
||||
extern class AudioWorkletGlobalScope extends js.html.WorkletGlobalScope {
|
||||
var currentFrame(default,null) : Int;
|
||||
var currentTime(default,null) : Float;
|
||||
var sampleRate(default,null) : Float;
|
||||
|
||||
function registerProcessor( name : String, processorCtor : Void -> Void ) : Void;
|
||||
}
|
33
Kha/Tools/macos/std/js/html/audio/AudioWorkletNodeOptions.hx
Normal file
33
Kha/Tools/macos/std/js/html/audio/AudioWorkletNodeOptions.hx
Normal file
@ -0,0 +1,33 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\AudioWorkletNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
typedef AudioWorkletNodeOptions = AudioNodeOptions & {
|
||||
var ?numberOfInputs : Int;
|
||||
var ?numberOfOutputs : Int;
|
||||
var ?outputChannelCount : Array<Int>;
|
||||
var ?parameterData : haxe.DynamicAccess<Float>;
|
||||
var ?processorOptions : Dynamic;
|
||||
}
|
33
Kha/Tools/macos/std/js/html/audio/AudioWorkletProcessor.hx
Normal file
33
Kha/Tools/macos/std/js/html/audio/AudioWorkletProcessor.hx
Normal file
@ -0,0 +1,33 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\AudioWorkletProcessor.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
@:native("AudioWorkletProcessor")
|
||||
extern class AudioWorkletProcessor {
|
||||
var port(default,null) : js.html.MessagePort;
|
||||
|
||||
/** @throws DOMError */
|
||||
function new( ?options : AudioWorkletNodeOptions ) : Void;
|
||||
}
|
190
Kha/Tools/macos/std/js/html/audio/BaseAudioContext.hx
Normal file
190
Kha/Tools/macos/std/js/html/audio/BaseAudioContext.hx
Normal file
@ -0,0 +1,190 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\BaseAudioContext.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
import js.lib.Promise;
|
||||
|
||||
/**
|
||||
The `BaseAudioContext` interface acts as a base definition for online and offline audio-processing graphs, as represented by `AudioContext` and `OfflineAudioContext` respectively.
|
||||
|
||||
Documentation [BaseAudioContext](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext>
|
||||
**/
|
||||
@:native("BaseAudioContext")
|
||||
extern class BaseAudioContext extends js.html.EventTarget {
|
||||
|
||||
/**
|
||||
Returns an `AudioDestinationNode` representing the final destination of all audio in the context. It can be thought of as the audio-rendering device.
|
||||
**/
|
||||
var destination(default,null) : AudioDestinationNode;
|
||||
|
||||
/**
|
||||
Returns a float representing the sample rate (in samples per second) used by all nodes in this context. The sample-rate of an `AudioContext` cannot be changed.
|
||||
**/
|
||||
var sampleRate(default,null) : Float;
|
||||
|
||||
/**
|
||||
Returns a double representing an ever-increasing hardware time in seconds used for scheduling. It starts at `0`.
|
||||
**/
|
||||
var currentTime(default,null) : Float;
|
||||
|
||||
/**
|
||||
Returns the `AudioListener` object, used for 3D spatialization.
|
||||
**/
|
||||
var listener(default,null) : AudioListener;
|
||||
|
||||
/**
|
||||
Returns the current state of the `AudioContext`.
|
||||
**/
|
||||
var state(default,null) : AudioContextState;
|
||||
|
||||
/**
|
||||
An event handler that runs when an event of type `statechange` has fired. This occurs when the `AudioContext`'s state changes, due to the calling of one of the state change methods (`AudioContext.suspend`, `AudioContext.resume`, or `AudioContext.close`).
|
||||
**/
|
||||
var onstatechange : haxe.Constraints.Function;
|
||||
|
||||
|
||||
/**
|
||||
Resumes the progression of time in an audio context that has previously been suspended/paused.
|
||||
@throws DOMError
|
||||
**/
|
||||
function resume() : Promise<Void>;
|
||||
|
||||
/**
|
||||
Creates a new, empty `AudioBuffer` object, which can then be populated by data and played via an `AudioBufferSourceNode`.
|
||||
@throws DOMError
|
||||
**/
|
||||
function createBuffer( numberOfChannels : Int, length : Int, sampleRate : Float ) : AudioBuffer;
|
||||
|
||||
/**
|
||||
Asynchronously decodes audio file data contained in an `ArrayBuffer`. In this case, the ArrayBuffer is usually loaded from an `XMLHttpRequest`'s `response` attribute after setting the `responseType` to `arraybuffer`. This method only works on complete files, not fragments of audio files.
|
||||
@throws DOMError
|
||||
**/
|
||||
@:overload( function( audioData : js.lib.ArrayBuffer, ?successCallback : AudioBuffer -> Void, ?errorCallback : Void -> Void ) : Promise<AudioBuffer> {} )
|
||||
function decodeAudioData( audioData : js.lib.ArrayBuffer, ?successCallback : AudioBuffer -> Void, ?errorCallback : js.html.DOMException -> Void ) : Promise<AudioBuffer>;
|
||||
|
||||
/**
|
||||
Creates an `AudioBufferSourceNode`, which can be used to play and manipulate audio data contained within an `AudioBuffer` object. `AudioBuffer`s are created using `AudioContext.createBuffer` or returned by `AudioContext.decodeAudioData` when it successfully decodes an audio track.
|
||||
@throws DOMError
|
||||
**/
|
||||
function createBufferSource() : AudioBufferSourceNode;
|
||||
|
||||
/**
|
||||
Creates a `ConstantSourceNode` object, which is an audio source that continuously outputs a monaural (one-channel) sound signal whose samples all have the same value.
|
||||
@throws DOMError
|
||||
**/
|
||||
function createConstantSource() : ConstantSourceNode;
|
||||
|
||||
/**
|
||||
Creates a `ScriptProcessorNode`, which can be used for direct audio processing via JavaScript.
|
||||
@throws DOMError
|
||||
**/
|
||||
function createScriptProcessor( bufferSize : Int = 0, numberOfInputChannels : Int = 2, numberOfOutputChannels : Int = 2 ) : ScriptProcessorNode;
|
||||
|
||||
/**
|
||||
Creates an `AnalyserNode`, which can be used to expose audio time and frequency data and for example to create data visualisations.
|
||||
@throws DOMError
|
||||
**/
|
||||
function createAnalyser() : AnalyserNode;
|
||||
|
||||
/**
|
||||
Creates a `GainNode`, which can be used to control the overall volume of the audio graph.
|
||||
@throws DOMError
|
||||
**/
|
||||
function createGain() : GainNode;
|
||||
|
||||
/**
|
||||
Creates a `DelayNode`, which is used to delay the incoming audio signal by a certain amount. This node is also useful to create feedback loops in a Web Audio API graph.
|
||||
@throws DOMError
|
||||
**/
|
||||
function createDelay( maxDelayTime : Float = 1.0 ) : DelayNode;
|
||||
|
||||
/**
|
||||
Creates a `BiquadFilterNode`, which represents a second order filter configurable as several different common filter types: high-pass, low-pass, band-pass, etc
|
||||
@throws DOMError
|
||||
**/
|
||||
function createBiquadFilter() : BiquadFilterNode;
|
||||
|
||||
/**
|
||||
Creates an `IIRFilterNode`, which represents a second order filter configurable as several different common filter types.
|
||||
@throws DOMError
|
||||
**/
|
||||
function createIIRFilter( feedforward : Array<Float>, feedback : Array<Float> ) : IIRFilterNode;
|
||||
|
||||
/**
|
||||
Creates a `WaveShaperNode`, which is used to implement non-linear distortion effects.
|
||||
@throws DOMError
|
||||
**/
|
||||
function createWaveShaper() : WaveShaperNode;
|
||||
|
||||
/**
|
||||
Creates a `PannerNode`, which is used to spatialise an incoming audio stream in 3D space.
|
||||
@throws DOMError
|
||||
**/
|
||||
function createPanner() : PannerNode;
|
||||
|
||||
/**
|
||||
Creates a `StereoPannerNode`, which can be used to apply stereo panning to an audio source.
|
||||
@throws DOMError
|
||||
**/
|
||||
function createStereoPanner() : StereoPannerNode;
|
||||
|
||||
/**
|
||||
Creates a `ConvolverNode`, which can be used to apply convolution effects to your audio graph, for example a reverberation effect.
|
||||
@throws DOMError
|
||||
**/
|
||||
function createConvolver() : ConvolverNode;
|
||||
|
||||
/**
|
||||
Creates a `ChannelSplitterNode`, which is used to access the individual channels of an audio stream and process them separately.
|
||||
@throws DOMError
|
||||
**/
|
||||
function createChannelSplitter( numberOfOutputs : Int = 6 ) : ChannelSplitterNode;
|
||||
|
||||
/**
|
||||
Creates a `ChannelMergerNode`, which is used to combine channels from multiple audio streams into a single audio stream.
|
||||
@throws DOMError
|
||||
**/
|
||||
function createChannelMerger( numberOfInputs : Int = 6 ) : ChannelMergerNode;
|
||||
|
||||
/**
|
||||
Creates a `DynamicsCompressorNode`, which can be used to apply acoustic compression to an audio signal.
|
||||
@throws DOMError
|
||||
**/
|
||||
function createDynamicsCompressor() : DynamicsCompressorNode;
|
||||
|
||||
/**
|
||||
Creates an `OscillatorNode`, a source representing a periodic waveform. It basically generates a tone.
|
||||
@throws DOMError
|
||||
**/
|
||||
function createOscillator() : OscillatorNode;
|
||||
|
||||
/**
|
||||
Creates a `PeriodicWave`, used to define a periodic waveform that can be used to determine the output of an `OscillatorNode`.
|
||||
@throws DOMError
|
||||
**/
|
||||
function createPeriodicWave( real : js.lib.Float32Array, imag : js.lib.Float32Array, ?constraints : PeriodicWaveConstraints ) : PeriodicWave;
|
||||
}
|
141
Kha/Tools/macos/std/js/html/audio/BiquadFilterNode.hx
Normal file
141
Kha/Tools/macos/std/js/html/audio/BiquadFilterNode.hx
Normal file
@ -0,0 +1,141 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\BiquadFilterNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
/**
|
||||
The `BiquadFilterNode` interface represents a simple low-order filter, and is created using the `AudioContext.createBiquadFilter()` method. It is an `AudioNode` that can represent different kinds of filters, tone control devices, and graphic equalizers.
|
||||
|
||||
Documentation [BiquadFilterNode](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode>
|
||||
**/
|
||||
@:native("BiquadFilterNode")
|
||||
extern class BiquadFilterNode extends AudioNode {
|
||||
|
||||
/**
|
||||
Is a string value defining the kind of filtering algorithm the node is implementing.<br>
|
||||
|
||||
<table class="standard-table">
|
||||
The meaning of the different parameters depending of the type of the filter (detune has the same meaning regardless, so isn't listed below)
|
||||
|
||||
<tr>
|
||||
<code>type</code>
|
||||
Description
|
||||
<code>frequency</code>
|
||||
<code>Q</code>
|
||||
<code>gain</code>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<code>lowpass</code>
|
||||
<td>Standard second-order resonant lowpass filter with 12dB/octave rolloff. Frequencies below the cutoff pass through; frequencies above it are attenuated.</td>
|
||||
<td>The cutoff frequency.</td>
|
||||
<td>Indicates how peaked the frequency is around the cutoff. The greater the value is, the greater is the peak.</td>
|
||||
<td>Not used</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<code>highpass</code>
|
||||
<td>Standard second-order resonant highpass filter with 12dB/octave rolloff. Frequencies below the cutoff are attenuated; frequencies above it pass through.</td>
|
||||
<td>The cutoff frequency.</td>
|
||||
<td>Indicates how peaked the frequency is around the cutoff. The greater the value, the greater the peak.</td>
|
||||
<td>Not used</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<code>bandpass</code>
|
||||
<td>Standard second-order bandpass filter. Frequencies outside the given range of frequencies are attenuated; the frequencies inside it pass through.</td>
|
||||
<td>The center of the range of frequencies.</td>
|
||||
<td>Controls the width of the frequency band. The greater the <code>Q</code> value, the smaller the frequency band.</td>
|
||||
<td>Not used</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<code>lowshelf</code>
|
||||
<td>Standard second-order lowshelf filter. Frequencies lower than the frequency get a boost, or an attenuation; frequencies over it are unchanged.</td>
|
||||
<td>The upper limit of the frequencies getting a boost or an attenuation.</td>
|
||||
<td>Not used</td>
|
||||
<td>The boost, in dB, to be applied; if negative, it will be an attenuation.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<code>highshelf</code>
|
||||
<td>Standard second-order highshelf filter. Frequencies higher than the frequency get a boost or an attenuation; frequencies lower than it are unchanged.</td>
|
||||
<td>The lower limit of the frequencies getting a boost or an attenuation.</td>
|
||||
<td>Not used</td>
|
||||
<td>The boost, in dB, to be applied; if negative, it will be an attenuation.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<code>peaking</code>
|
||||
<td>Frequencies inside the range get a boost or an attenuation; frequencies outside it are unchanged.</td>
|
||||
<td>The middle of the frequency range getting a boost or an attenuation.</td>
|
||||
<td>Controls the width of the frequency band. The greater the <code>Q</code> value, the smaller the frequency band.</td>
|
||||
<td>The boost, in dB, to be applied; if negative, it will be an attenuation.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<code>notch</code>
|
||||
<td>Standard notch filter, also called a band-stop or band-rejection filter. It is the opposite of a bandpass filter: frequencies outside the give range of frequencies pass through; frequencies inside it are attenuated.</td>
|
||||
<td>The center of the range of frequencies.</td>
|
||||
<td>Controls the width of the frequency band. The greater the <code>Q</code> value, the smaller the frequency band.</td>
|
||||
<td>Not used</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<code>allpass</code>
|
||||
<td>Standard second-order allpass filter. It lets all frequencies through, but changes the phase-relationship between the various frequencies.</td>
|
||||
<td>The frequency with the maximal group delay, that is, the frequency where the center of the phase transition occurs.</td>
|
||||
<td>Controls how sharp the transition is at the medium frequency. The larger this parameter is, the sharper and larger the transition will be.</td>
|
||||
<td>Not used</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
**/
|
||||
var type : BiquadFilterType;
|
||||
|
||||
/**
|
||||
Is an a-rate `AudioParam`, a double representing a frequency in the current filtering algorithm measured in hertz (Hz).
|
||||
**/
|
||||
var frequency(default,null) : AudioParam;
|
||||
|
||||
/**
|
||||
Is an a-rate `AudioParam` representing detuning of the frequency in cents.
|
||||
**/
|
||||
var detune(default,null) : AudioParam;
|
||||
|
||||
/**
|
||||
Is an a-rate `AudioParam`, a double representing a Q factor, or quality factor.
|
||||
**/
|
||||
var Q(default,null) : AudioParam;
|
||||
|
||||
/**
|
||||
Is an a-rate `AudioParam`, a double representing the gain used in the current filtering algorithm.
|
||||
**/
|
||||
var gain(default,null) : AudioParam;
|
||||
|
||||
/** @throws DOMError */
|
||||
function new( context : BaseAudioContext, ?options : BiquadFilterOptions ) : Void;
|
||||
|
||||
/**
|
||||
From the current filter parameter settings this method calculates the frequency response for frequencies specified in the provided array of frequencies.
|
||||
**/
|
||||
function getFrequencyResponse( frequencyHz : js.lib.Float32Array, magResponse : js.lib.Float32Array, phaseResponse : js.lib.Float32Array ) : Void;
|
||||
}
|
33
Kha/Tools/macos/std/js/html/audio/BiquadFilterOptions.hx
Normal file
33
Kha/Tools/macos/std/js/html/audio/BiquadFilterOptions.hx
Normal file
@ -0,0 +1,33 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\BiquadFilterNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
typedef BiquadFilterOptions = AudioNodeOptions & {
|
||||
var ?Q : Float;
|
||||
var ?detune : Float;
|
||||
var ?frequency : Float;
|
||||
var ?gain : Float;
|
||||
var ?type : BiquadFilterType;
|
||||
}
|
36
Kha/Tools/macos/std/js/html/audio/BiquadFilterType.hx
Normal file
36
Kha/Tools/macos/std/js/html/audio/BiquadFilterType.hx
Normal file
@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\BiquadFilterNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
enum abstract BiquadFilterType(String) {
|
||||
var LOWPASS = "lowpass";
|
||||
var HIGHPASS = "highpass";
|
||||
var BANDPASS = "bandpass";
|
||||
var LOWSHELF = "lowshelf";
|
||||
var HIGHSHELF = "highshelf";
|
||||
var PEAKING = "peaking";
|
||||
var NOTCH = "notch";
|
||||
var ALLPASS = "allpass";
|
||||
}
|
31
Kha/Tools/macos/std/js/html/audio/ChannelCountMode.hx
Normal file
31
Kha/Tools/macos/std/js/html/audio/ChannelCountMode.hx
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\AudioNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
enum abstract ChannelCountMode(String) {
|
||||
var MAX = "max";
|
||||
var CLAMPED_MAX = "clamped-max";
|
||||
var EXPLICIT = "explicit";
|
||||
}
|
30
Kha/Tools/macos/std/js/html/audio/ChannelInterpretation.hx
Normal file
30
Kha/Tools/macos/std/js/html/audio/ChannelInterpretation.hx
Normal file
@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\AudioNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
enum abstract ChannelInterpretation(String) {
|
||||
var SPEAKERS = "speakers";
|
||||
var DISCRETE = "discrete";
|
||||
}
|
31
Kha/Tools/macos/std/js/html/audio/ChannelMergerNode.hx
Normal file
31
Kha/Tools/macos/std/js/html/audio/ChannelMergerNode.hx
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\ChannelMergerNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
@:native("ChannelMergerNode")
|
||||
extern class ChannelMergerNode extends AudioNode {
|
||||
/** @throws DOMError */
|
||||
function new( context : BaseAudioContext, ?options : ChannelMergerOptions ) : Void;
|
||||
}
|
29
Kha/Tools/macos/std/js/html/audio/ChannelMergerOptions.hx
Normal file
29
Kha/Tools/macos/std/js/html/audio/ChannelMergerOptions.hx
Normal file
@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\ChannelMergerNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
typedef ChannelMergerOptions = AudioNodeOptions & {
|
||||
var ?numberOfInputs : Int;
|
||||
}
|
31
Kha/Tools/macos/std/js/html/audio/ChannelSplitterNode.hx
Normal file
31
Kha/Tools/macos/std/js/html/audio/ChannelSplitterNode.hx
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\ChannelSplitterNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
@:native("ChannelSplitterNode")
|
||||
extern class ChannelSplitterNode extends AudioNode {
|
||||
/** @throws DOMError */
|
||||
function new( context : BaseAudioContext, ?options : ChannelSplitterOptions ) : Void;
|
||||
}
|
29
Kha/Tools/macos/std/js/html/audio/ChannelSplitterOptions.hx
Normal file
29
Kha/Tools/macos/std/js/html/audio/ChannelSplitterOptions.hx
Normal file
@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\ChannelSplitterNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
typedef ChannelSplitterOptions = AudioNodeOptions & {
|
||||
var ?numberOfOutputs : Int;
|
||||
}
|
44
Kha/Tools/macos/std/js/html/audio/ConstantSourceNode.hx
Normal file
44
Kha/Tools/macos/std/js/html/audio/ConstantSourceNode.hx
Normal file
@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\ConstantSourceNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
/**
|
||||
The `ConstantSourceNode` interface—part of the Web Audio API—represents an audio source (based upon `AudioScheduledSourceNode`) whose output is single unchanging value. This makes it useful for cases in which you need a constant value coming in from an audio source. In addition, it can be used like a constructible `AudioParam` by automating the value of its `offset` or by connecting another node to it; see Controlling multiple parameters with ConstantSourceNode.
|
||||
|
||||
Documentation [ConstantSourceNode](https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode>
|
||||
**/
|
||||
@:native("ConstantSourceNode")
|
||||
extern class ConstantSourceNode extends AudioScheduledSourceNode {
|
||||
|
||||
/**
|
||||
An `AudioParam` which specifies the value that this source continuously outputs. The default value is 1.0.
|
||||
**/
|
||||
var offset(default,null) : AudioParam;
|
||||
|
||||
/** @throws DOMError */
|
||||
function new( context : BaseAudioContext, ?options : ConstantSourceOptions ) : Void;
|
||||
}
|
29
Kha/Tools/macos/std/js/html/audio/ConstantSourceOptions.hx
Normal file
29
Kha/Tools/macos/std/js/html/audio/ConstantSourceOptions.hx
Normal file
@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\ConstantSourceNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
typedef ConstantSourceOptions = {
|
||||
var ?offset : Float;
|
||||
}
|
49
Kha/Tools/macos/std/js/html/audio/ConvolverNode.hx
Normal file
49
Kha/Tools/macos/std/js/html/audio/ConvolverNode.hx
Normal file
@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\ConvolverNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
/**
|
||||
The `ConvolverNode` interface is an `AudioNode` that performs a Linear Convolution on a given `AudioBuffer`, often used to achieve a reverb effect. A `ConvolverNode` always has exactly one input and one output.
|
||||
|
||||
Documentation [ConvolverNode](https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode>
|
||||
**/
|
||||
@:native("ConvolverNode")
|
||||
extern class ConvolverNode extends AudioNode {
|
||||
|
||||
/**
|
||||
A mono, stereo, or 4-channel `AudioBuffer` containing the (possibly multichannel) impulse response used by the `ConvolverNode` to create the reverb effect.
|
||||
**/
|
||||
var buffer : AudioBuffer;
|
||||
|
||||
/**
|
||||
A boolean that controls whether the impulse response from the buffer will be scaled by an equal-power normalization when the `buffer` attribute is set, or not.
|
||||
**/
|
||||
var normalize : Bool;
|
||||
|
||||
/** @throws DOMError */
|
||||
function new( context : BaseAudioContext, ?options : ConvolverOptions ) : Void;
|
||||
}
|
30
Kha/Tools/macos/std/js/html/audio/ConvolverOptions.hx
Normal file
30
Kha/Tools/macos/std/js/html/audio/ConvolverOptions.hx
Normal file
@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\ConvolverNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
typedef ConvolverOptions = AudioNodeOptions & {
|
||||
var ?buffer : AudioBuffer;
|
||||
var ?disableNormalization : Bool;
|
||||
}
|
44
Kha/Tools/macos/std/js/html/audio/DelayNode.hx
Normal file
44
Kha/Tools/macos/std/js/html/audio/DelayNode.hx
Normal file
@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\DelayNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
/**
|
||||
The `DelayNode` interface represents a delay-line; an `AudioNode` audio-processing module that causes a delay between the arrival of an input data and its propagation to the output.
|
||||
|
||||
Documentation [DelayNode](https://developer.mozilla.org/en-US/docs/Web/API/DelayNode) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/DelayNode$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/DelayNode>
|
||||
**/
|
||||
@:native("DelayNode")
|
||||
extern class DelayNode extends AudioNode {
|
||||
|
||||
/**
|
||||
Is an a-rate `AudioParam` representing the amount of delay to apply.
|
||||
**/
|
||||
var delayTime(default,null) : AudioParam;
|
||||
|
||||
/** @throws DOMError */
|
||||
function new( context : BaseAudioContext, ?options : DelayOptions ) : Void;
|
||||
}
|
30
Kha/Tools/macos/std/js/html/audio/DelayOptions.hx
Normal file
30
Kha/Tools/macos/std/js/html/audio/DelayOptions.hx
Normal file
@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\DelayNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
typedef DelayOptions = AudioNodeOptions & {
|
||||
var ?delayTime : Float;
|
||||
var ?maxDelayTime : Float;
|
||||
}
|
31
Kha/Tools/macos/std/js/html/audio/DistanceModelType.hx
Normal file
31
Kha/Tools/macos/std/js/html/audio/DistanceModelType.hx
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\PannerNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
enum abstract DistanceModelType(String) {
|
||||
var LINEAR = "linear";
|
||||
var INVERSE = "inverse";
|
||||
var EXPONENTIAL = "exponential";
|
||||
}
|
69
Kha/Tools/macos/std/js/html/audio/DynamicsCompressorNode.hx
Normal file
69
Kha/Tools/macos/std/js/html/audio/DynamicsCompressorNode.hx
Normal file
@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\DynamicsCompressorNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
/**
|
||||
Inherits properties from its parent, `AudioNode`.
|
||||
|
||||
Documentation [DynamicsCompressorNode](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode>
|
||||
**/
|
||||
@:native("DynamicsCompressorNode")
|
||||
extern class DynamicsCompressorNode extends AudioNode {
|
||||
|
||||
/**
|
||||
Is a k-rate `AudioParam` representing the decibel value above which the compression will start taking effect.
|
||||
**/
|
||||
var threshold(default,null) : AudioParam;
|
||||
|
||||
/**
|
||||
Is a k-rate `AudioParam` containing a decibel value representing the range above the threshold where the curve smoothly transitions to the compressed portion.
|
||||
**/
|
||||
var knee(default,null) : AudioParam;
|
||||
|
||||
/**
|
||||
Is a k-rate `AudioParam` representing the amount of change, in dB, needed in the input for a 1 dB change in the output.
|
||||
**/
|
||||
var ratio(default,null) : AudioParam;
|
||||
|
||||
/**
|
||||
Is a `float` representing the amount of gain reduction currently applied by the compressor to the signal.
|
||||
**/
|
||||
var reduction(default,null) : Float;
|
||||
|
||||
/**
|
||||
Is a k-rate `AudioParam` representing the amount of time, in seconds, required to reduce the gain by 10 dB.
|
||||
**/
|
||||
var attack(default,null) : AudioParam;
|
||||
|
||||
/**
|
||||
Is a k-rate `AudioParam` representing the amount of time, in seconds, required to increase the gain by 10 dB.
|
||||
**/
|
||||
var release(default,null) : AudioParam;
|
||||
|
||||
/** @throws DOMError */
|
||||
function new( context : BaseAudioContext, ?options : DynamicsCompressorOptions ) : Void;
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\DynamicsCompressorNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
typedef DynamicsCompressorOptions = AudioNodeOptions & {
|
||||
var ?attack : Float;
|
||||
var ?knee : Float;
|
||||
var ?ratio : Float;
|
||||
var ?release : Float;
|
||||
var ?threshold : Float;
|
||||
}
|
44
Kha/Tools/macos/std/js/html/audio/GainNode.hx
Normal file
44
Kha/Tools/macos/std/js/html/audio/GainNode.hx
Normal file
@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\GainNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
/**
|
||||
The `GainNode` interface represents a change in volume. It is an `AudioNode` audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A `GainNode` always has exactly one input and one output, both with the same number of channels.
|
||||
|
||||
Documentation [GainNode](https://developer.mozilla.org/en-US/docs/Web/API/GainNode) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/GainNode$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/GainNode>
|
||||
**/
|
||||
@:native("GainNode")
|
||||
extern class GainNode extends AudioNode {
|
||||
|
||||
/**
|
||||
Is an a-rate `AudioParam` representing the amount of gain to apply. You have to set `AudioParam.value` or use the methods of `AudioParam` to change the effect of gain.
|
||||
**/
|
||||
var gain(default,null) : AudioParam;
|
||||
|
||||
/** @throws DOMError */
|
||||
function new( context : BaseAudioContext, ?options : GainOptions ) : Void;
|
||||
}
|
29
Kha/Tools/macos/std/js/html/audio/GainOptions.hx
Normal file
29
Kha/Tools/macos/std/js/html/audio/GainOptions.hx
Normal file
@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\GainNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
typedef GainOptions = AudioNodeOptions & {
|
||||
var ?gain : Float;
|
||||
}
|
39
Kha/Tools/macos/std/js/html/audio/IIRFilterNode.hx
Normal file
39
Kha/Tools/macos/std/js/html/audio/IIRFilterNode.hx
Normal file
@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\IIRFilterNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
/**
|
||||
The `IIRFilterNode` interface of the Web Audio API is a `AudioNode` processor which implements a general infinite impulse response (IIR) filter; this type of filter can be used to implement tone control devices and graphic equalizers as well. It lets the parameters of the filter response be specified, so that it can be tuned as needed.
|
||||
|
||||
Documentation [IIRFilterNode](https://developer.mozilla.org/en-US/docs/Web/API/IIRFilterNode) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/IIRFilterNode$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/IIRFilterNode>
|
||||
**/
|
||||
@:native("IIRFilterNode")
|
||||
extern class IIRFilterNode extends AudioNode {
|
||||
/** @throws DOMError */
|
||||
function new( context : BaseAudioContext, options : IIRFilterOptions ) : Void;
|
||||
function getFrequencyResponse( frequencyHz : js.lib.Float32Array, magResponse : js.lib.Float32Array, phaseResponse : js.lib.Float32Array ) : Void;
|
||||
}
|
30
Kha/Tools/macos/std/js/html/audio/IIRFilterOptions.hx
Normal file
30
Kha/Tools/macos/std/js/html/audio/IIRFilterOptions.hx
Normal file
@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\IIRFilterNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
typedef IIRFilterOptions = AudioNodeOptions & {
|
||||
var feedback : Array<Float>;
|
||||
var feedforward : Array<Float>;
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\MediaElementAudioSourceNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
/**
|
||||
A `MediaElementSourceNode` has no inputs and exactly one output, and is created using the `AudioContext.createMediaElementSource` method. The amount of channels in the output equals the number of channels of the audio referenced by the `HTMLMediaElement` used in the creation of the node, or is 1 if the `HTMLMediaElement` has no audio.
|
||||
|
||||
Documentation [MediaElementAudioSourceNode](https://developer.mozilla.org/en-US/docs/Web/API/MediaElementAudioSourceNode) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/MediaElementAudioSourceNode$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/MediaElementAudioSourceNode>
|
||||
**/
|
||||
@:native("MediaElementAudioSourceNode")
|
||||
extern class MediaElementAudioSourceNode extends AudioNode {
|
||||
/** @throws DOMError */
|
||||
function new( context : AudioContext, options : MediaElementAudioSourceOptions ) : Void;
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\MediaElementAudioSourceNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
typedef MediaElementAudioSourceOptions = {
|
||||
var mediaElement : js.html.MediaElement;
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\MediaStreamAudioDestinationNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
/**
|
||||
Inherits properties from its parent, `AudioNode`.
|
||||
|
||||
Documentation [MediaStreamAudioDestinationNode](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamAudioDestinationNode) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamAudioDestinationNode$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamAudioDestinationNode>
|
||||
**/
|
||||
@:native("MediaStreamAudioDestinationNode")
|
||||
extern class MediaStreamAudioDestinationNode extends AudioNode {
|
||||
|
||||
/**
|
||||
Is a `MediaStream` containing a single `AudioMediaStreamTrack` with the same number of channels as the node itself. You can use this property to get a stream out of the audio graph and feed it into another construct, such as a Media Recorder.
|
||||
**/
|
||||
var stream(default,null) : js.html.MediaStream;
|
||||
|
||||
/** @throws DOMError */
|
||||
function new( context : AudioContext, ?options : AudioNodeOptions ) : Void;
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\MediaStreamAudioSourceNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
/**
|
||||
A `MediaStreamAudioSourceNode` has no inputs and exactly one output, and is created using the `AudioContext.createMediaStreamSource` method. The number of channels in the output equals the number of channels in `AudioMediaStreamTrack`. If there is no valid media stream, then the number of output channels will be one silent channel.
|
||||
|
||||
Documentation [MediaStreamAudioSourceNode](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamAudioSourceNode) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamAudioSourceNode$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamAudioSourceNode>
|
||||
**/
|
||||
@:native("MediaStreamAudioSourceNode")
|
||||
extern class MediaStreamAudioSourceNode extends AudioNode {
|
||||
/** @throws DOMError */
|
||||
function new( context : AudioContext, options : MediaStreamAudioSourceOptions ) : Void;
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\MediaStreamAudioSourceNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
typedef MediaStreamAudioSourceOptions = {
|
||||
var mediaStream : js.html.MediaStream;
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\OfflineAudioCompletionEvent.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
/**
|
||||
The Web Audio API `OfflineAudioCompletionEvent` interface represents events that occur when the processing of an `OfflineAudioContext` is terminated. The `complete` event implements this interface.
|
||||
|
||||
Documentation [OfflineAudioCompletionEvent](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioCompletionEvent) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioCompletionEvent$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioCompletionEvent>
|
||||
**/
|
||||
@:deprecated("OfflineAudioCompletionEvent is deprecated")
|
||||
@:native("OfflineAudioCompletionEvent")
|
||||
extern class OfflineAudioCompletionEvent extends js.html.Event {
|
||||
|
||||
/**
|
||||
An `AudioBuffer` containing the result of processing an `OfflineAudioContext`.
|
||||
**/
|
||||
var renderedBuffer(default,null) : AudioBuffer;
|
||||
|
||||
/** @throws DOMError */
|
||||
function new( type : String, eventInitDict : js.html.OfflineAudioCompletionEventInit ) : Void;
|
||||
}
|
58
Kha/Tools/macos/std/js/html/audio/OfflineAudioContext.hx
Normal file
58
Kha/Tools/macos/std/js/html/audio/OfflineAudioContext.hx
Normal file
@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\OfflineAudioContext.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
import js.lib.Promise;
|
||||
|
||||
/**
|
||||
The `OfflineAudioContext` interface is an `AudioContext` interface representing an audio-processing graph built from linked together `AudioNode`s. In contrast with a standard `AudioContext`, an `OfflineAudioContext` doesn't render the audio to the device hardware; instead, it generates it, as fast as it can, and outputs the result to an `AudioBuffer`.
|
||||
|
||||
Documentation [OfflineAudioContext](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext>
|
||||
**/
|
||||
@:native("OfflineAudioContext")
|
||||
extern class OfflineAudioContext extends BaseAudioContext {
|
||||
|
||||
/**
|
||||
An integer representing the size of the buffer in sample-frames.
|
||||
**/
|
||||
var length(default,null) : Int;
|
||||
|
||||
/**
|
||||
Is an `EventHandler` called when processing is terminated, that is when the `complete` event (of type `OfflineAudioCompletionEvent`) is raised, after the event-based version of `OfflineAudioContext.startRendering()` is used.
|
||||
**/
|
||||
var oncomplete : haxe.Constraints.Function;
|
||||
|
||||
/** @throws DOMError */
|
||||
@:overload( function( contextOptions : OfflineAudioContextOptions ) : Void {} )
|
||||
function new( numberOfChannels : Int, length : Int, sampleRate : Float ) : Void;
|
||||
|
||||
/**
|
||||
Starts rendering the audio, taking into account the current connections and the current scheduled changes. This page covers both the event-based version and the promise-based version.
|
||||
@throws DOMError
|
||||
**/
|
||||
function startRendering() : Promise<AudioBuffer>;
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\OfflineAudioContext.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
typedef OfflineAudioContextOptions = {
|
||||
var length : Int;
|
||||
var ?numberOfChannels : Int;
|
||||
var sampleRate : Float;
|
||||
}
|
59
Kha/Tools/macos/std/js/html/audio/OscillatorNode.hx
Normal file
59
Kha/Tools/macos/std/js/html/audio/OscillatorNode.hx
Normal file
@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\OscillatorNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
/**
|
||||
The `OscillatorNode` interface represents a periodic waveform, such as a sine wave. It is an `AudioScheduledSourceNode` audio-processing module that causes a specified frequency of a given wave to be created—in effect, a constant tone.
|
||||
|
||||
Documentation [OscillatorNode](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode>
|
||||
**/
|
||||
@:native("OscillatorNode")
|
||||
extern class OscillatorNode extends AudioScheduledSourceNode {
|
||||
|
||||
/**
|
||||
A string which specifies the shape of waveform to play; this can be one of a number of standard values, or `custom` to use a `PeriodicWave` to describe a custom waveform. Different waves will produce different tones. Standard values are `"sine"`, `"square"`, `"sawtooth"`, `"triangle"` and `"custom"`. The default is `"sine"`.
|
||||
**/
|
||||
var type : OscillatorType;
|
||||
|
||||
/**
|
||||
An a-rate `AudioParam` representing the frequency of oscillation in hertz (though the AudioParam` returned is read-only, the value it represents is not). The default value is 440 Hz (a standard middle-A note).
|
||||
**/
|
||||
var frequency(default,null) : AudioParam;
|
||||
|
||||
/**
|
||||
An a-rate `AudioParam` representing detuning of oscillation in cents (though the AudioParam` returned is read-only, the value it represents is not). The default value is 0.
|
||||
**/
|
||||
var detune(default,null) : AudioParam;
|
||||
|
||||
/** @throws DOMError */
|
||||
function new( context : BaseAudioContext, ?options : OscillatorOptions ) : Void;
|
||||
|
||||
/**
|
||||
Sets a `PeriodicWave` which describes a periodic waveform to be used instead of one of the standard waveforms; calling this sets the `type` to `custom`. This replaces the now-obsolete `OscillatorNode.setWaveTable()` method.
|
||||
**/
|
||||
function setPeriodicWave( periodicWave : PeriodicWave ) : Void;
|
||||
}
|
32
Kha/Tools/macos/std/js/html/audio/OscillatorOptions.hx
Normal file
32
Kha/Tools/macos/std/js/html/audio/OscillatorOptions.hx
Normal file
@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\OscillatorNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
typedef OscillatorOptions = AudioNodeOptions & {
|
||||
var ?detune : Float;
|
||||
var ?frequency : Float;
|
||||
var ?periodicWave : PeriodicWave;
|
||||
var ?type : OscillatorType;
|
||||
}
|
33
Kha/Tools/macos/std/js/html/audio/OscillatorType.hx
Normal file
33
Kha/Tools/macos/std/js/html/audio/OscillatorType.hx
Normal file
@ -0,0 +1,33 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\OscillatorNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
enum abstract OscillatorType(String) {
|
||||
var SINE = "sine";
|
||||
var SQUARE = "square";
|
||||
var SAWTOOTH = "sawtooth";
|
||||
var TRIANGLE = "triangle";
|
||||
var CUSTOM = "custom";
|
||||
}
|
31
Kha/Tools/macos/std/js/html/audio/OverSampleType.hx
Normal file
31
Kha/Tools/macos/std/js/html/audio/OverSampleType.hx
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\WaveShaperNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
enum abstract OverSampleType(String) {
|
||||
var NONE = "none";
|
||||
var _2X = "2x";
|
||||
var _4X = "4x";
|
||||
}
|
119
Kha/Tools/macos/std/js/html/audio/PannerNode.hx
Normal file
119
Kha/Tools/macos/std/js/html/audio/PannerNode.hx
Normal file
@ -0,0 +1,119 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\PannerNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
/**
|
||||
A `PannerNode` always has exactly one input and one output: the input can be mono or stereo but the output is always stereo (2 channels); you can't have panning effects without at least two audio channels!
|
||||
|
||||
Documentation [PannerNode](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/PannerNode>
|
||||
**/
|
||||
@:native("PannerNode")
|
||||
extern class PannerNode extends AudioNode {
|
||||
|
||||
/**
|
||||
An enumerated value determining which spatialisation algorithm to use to position the audio in 3D space.
|
||||
**/
|
||||
var panningModel : PanningModelType;
|
||||
|
||||
/**
|
||||
Represents the horizontal position of the audio in a right-hand cartesian coordinate sytem. The default is 0. While this `AudioParam` cannot be directly changed, its value can be altered using its `AudioParam.value` property. The default is value is 0.
|
||||
**/
|
||||
var positionX(default,null) : AudioParam;
|
||||
|
||||
/**
|
||||
Represents the vertical position of the audio in a right-hand cartesian coordinate sytem. The default is 0. While this `AudioParam` cannot be directly changed, its value can be altered using its `AudioParam.value` property. The default is value is 0.
|
||||
**/
|
||||
var positionY(default,null) : AudioParam;
|
||||
|
||||
/**
|
||||
Represents the longitudinal (back and forth) position of the audio in a right-hand cartesian coordinate sytem. The default is 0. While this `AudioParam` cannot be directly changed, its value can be altered using its `AudioParam.value` property. The default is value is 0.
|
||||
**/
|
||||
var positionZ(default,null) : AudioParam;
|
||||
|
||||
/**
|
||||
Represents the horizontal position of the audio source's vector in a right-hand cartesian coordinate sytem. While this `AudioParam` cannot be directly changed, its value can be altered using its `AudioParam.value` property. The default is value is 1.
|
||||
**/
|
||||
var orientationX(default,null) : AudioParam;
|
||||
|
||||
/**
|
||||
Represents the vertical position of the audio source's vector in a right-hand cartesian coordinate sytem. The default is 0. While this `AudioParam` cannot be directly changed, its value can be altered using its `AudioParam.value` property. The default is value is 0.
|
||||
**/
|
||||
var orientationY(default,null) : AudioParam;
|
||||
|
||||
/**
|
||||
Represents the longitudinal (back and forth) position of the audio source's vector in a right-hand cartesian coordinate sytem. The default is 0. While this `AudioParam` cannot be directly changed, its value can be altered using its `AudioParam.value` property. The default is value is 0.
|
||||
**/
|
||||
var orientationZ(default,null) : AudioParam;
|
||||
|
||||
/**
|
||||
An enumerated value determining which algorithm to use to reduce the volume of the audio source as it moves away from the listener.
|
||||
**/
|
||||
var distanceModel : DistanceModelType;
|
||||
|
||||
/**
|
||||
A double value representing the reference distance for reducing volume as the audio source moves further from the listener.
|
||||
**/
|
||||
var refDistance : Float;
|
||||
|
||||
/**
|
||||
A double value representing the maximum distance between the audio source and the listener, after which the volume is not reduced any further.
|
||||
**/
|
||||
var maxDistance : Float;
|
||||
|
||||
/**
|
||||
A double value describing how quickly the volume is reduced as the source moves away from the listener. This value is used by all distance models.
|
||||
**/
|
||||
var rolloffFactor : Float;
|
||||
|
||||
/**
|
||||
Is a double value describing the angle, in degrees, of a cone inside of which there will be no volume reduction.
|
||||
**/
|
||||
var coneInnerAngle : Float;
|
||||
|
||||
/**
|
||||
A double value describing the angle, in degrees, of a cone outside of which the volume will be reduced by a constant value, defined by the `coneOuterGain` attribute.
|
||||
**/
|
||||
var coneOuterAngle : Float;
|
||||
|
||||
/**
|
||||
A double value describing the amount of volume reduction outside the cone defined by the `coneOuterAngle` attribute. Its default value is `0`, meaning that no sound can be heard.
|
||||
**/
|
||||
var coneOuterGain : Float;
|
||||
|
||||
/** @throws DOMError */
|
||||
function new( context : BaseAudioContext, ?options : PannerOptions ) : Void;
|
||||
|
||||
/**
|
||||
Defines the position of the audio source relative to the listener (represented by an `AudioListener` object stored in the `AudioContext.listener` attribute.)
|
||||
**/
|
||||
function setPosition( x : Float, y : Float, z : Float ) : Void;
|
||||
|
||||
/**
|
||||
Defines the direction the audio source is playing in.
|
||||
**/
|
||||
function setOrientation( x : Float, y : Float, z : Float ) : Void;
|
||||
}
|
42
Kha/Tools/macos/std/js/html/audio/PannerOptions.hx
Normal file
42
Kha/Tools/macos/std/js/html/audio/PannerOptions.hx
Normal file
@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\PannerNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
typedef PannerOptions = AudioNodeOptions & {
|
||||
var ?coneInnerAngle : Float;
|
||||
var ?coneOuterAngle : Float;
|
||||
var ?coneOuterGain : Float;
|
||||
var ?distanceModel : DistanceModelType;
|
||||
var ?maxDistance : Float;
|
||||
var ?orientationX : Float;
|
||||
var ?orientationY : Float;
|
||||
var ?orientationZ : Float;
|
||||
var ?panningModel : PanningModelType;
|
||||
var ?positionX : Float;
|
||||
var ?positionY : Float;
|
||||
var ?positionZ : Float;
|
||||
var ?refDistance : Float;
|
||||
var ?rolloffFactor : Float;
|
||||
}
|
30
Kha/Tools/macos/std/js/html/audio/PanningModelType.hx
Normal file
30
Kha/Tools/macos/std/js/html/audio/PanningModelType.hx
Normal file
@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\PannerNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
enum abstract PanningModelType(String) {
|
||||
var EQUALPOWER = "equalpower";
|
||||
var HRTF = "HRTF";
|
||||
}
|
38
Kha/Tools/macos/std/js/html/audio/PeriodicWave.hx
Normal file
38
Kha/Tools/macos/std/js/html/audio/PeriodicWave.hx
Normal file
@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\PeriodicWave.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
/**
|
||||
`PeriodicWave` has no inputs or outputs; it is used to define custom oscillators when calling `OscillatorNode.setPeriodicWave()`. The `PeriodicWave` itself is created/returned by `AudioContext.createPeriodicWave()`.
|
||||
|
||||
Documentation [PeriodicWave](https://developer.mozilla.org/en-US/docs/Web/API/PeriodicWave) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/PeriodicWave$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/PeriodicWave>
|
||||
**/
|
||||
@:native("PeriodicWave")
|
||||
extern class PeriodicWave {
|
||||
/** @throws DOMError */
|
||||
function new( context : BaseAudioContext, ?options : PeriodicWaveOptions ) : Void;
|
||||
}
|
29
Kha/Tools/macos/std/js/html/audio/PeriodicWaveConstraints.hx
Normal file
29
Kha/Tools/macos/std/js/html/audio/PeriodicWaveConstraints.hx
Normal file
@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\PeriodicWave.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
typedef PeriodicWaveConstraints = {
|
||||
var ?disableNormalization : Bool;
|
||||
}
|
30
Kha/Tools/macos/std/js/html/audio/PeriodicWaveOptions.hx
Normal file
30
Kha/Tools/macos/std/js/html/audio/PeriodicWaveOptions.hx
Normal file
@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\PeriodicWave.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
typedef PeriodicWaveOptions = PeriodicWaveConstraints & {
|
||||
var ?imag : Array<Float>;
|
||||
var ?real : Array<Float>;
|
||||
}
|
45
Kha/Tools/macos/std/js/html/audio/ScriptProcessorNode.hx
Normal file
45
Kha/Tools/macos/std/js/html/audio/ScriptProcessorNode.hx
Normal file
@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\ScriptProcessorNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
/**
|
||||
Documentation [ScriptProcessorNode](https://developer.mozilla.org/en-US/docs/Web/API/ScriptProcessorNode) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/ScriptProcessorNode$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/ScriptProcessorNode>
|
||||
**/
|
||||
@:native("ScriptProcessorNode")
|
||||
extern class ScriptProcessorNode extends AudioNode {
|
||||
|
||||
/**
|
||||
Represents the `EventHandler` to be called.
|
||||
**/
|
||||
var onaudioprocess : haxe.Constraints.Function;
|
||||
|
||||
/**
|
||||
Returns an integer representing both the input and output buffer size. Its value can be a power of 2 value in the range `256`–`16384`.
|
||||
**/
|
||||
var bufferSize(default,null) : Int;
|
||||
|
||||
}
|
44
Kha/Tools/macos/std/js/html/audio/StereoPannerNode.hx
Normal file
44
Kha/Tools/macos/std/js/html/audio/StereoPannerNode.hx
Normal file
@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\StereoPannerNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
/**
|
||||
The `pan` property takes a unitless value between `-1` (full left pan) and `1` (full right pan). This interface was introduced as a much simpler way to apply a simple panning effect than having to use a full `PannerNode`.
|
||||
|
||||
Documentation [StereoPannerNode](https://developer.mozilla.org/en-US/docs/Web/API/StereoPannerNode) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/StereoPannerNode$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/StereoPannerNode>
|
||||
**/
|
||||
@:native("StereoPannerNode")
|
||||
extern class StereoPannerNode extends AudioNode {
|
||||
|
||||
/**
|
||||
Is an a-rate `AudioParam` representing the amount of panning to apply.
|
||||
**/
|
||||
var pan(default,null) : AudioParam;
|
||||
|
||||
/** @throws DOMError */
|
||||
function new( context : BaseAudioContext, ?options : StereoPannerOptions ) : Void;
|
||||
}
|
29
Kha/Tools/macos/std/js/html/audio/StereoPannerOptions.hx
Normal file
29
Kha/Tools/macos/std/js/html/audio/StereoPannerOptions.hx
Normal file
@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\StereoPannerNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
typedef StereoPannerOptions = AudioNodeOptions & {
|
||||
var ?pan : Float;
|
||||
}
|
49
Kha/Tools/macos/std/js/html/audio/WaveShaperNode.hx
Normal file
49
Kha/Tools/macos/std/js/html/audio/WaveShaperNode.hx
Normal file
@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\WaveShaperNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
/**
|
||||
A `WaveShaperNode` always has exactly one input and one output.
|
||||
|
||||
Documentation [WaveShaperNode](https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode) by [Mozilla Contributors](https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode$history), licensed under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/).
|
||||
|
||||
@see <https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode>
|
||||
**/
|
||||
@:native("WaveShaperNode")
|
||||
extern class WaveShaperNode extends AudioNode {
|
||||
|
||||
/**
|
||||
Is a `Float32Array` of numbers describing the distortion to apply.
|
||||
**/
|
||||
var curve : js.lib.Float32Array;
|
||||
|
||||
/**
|
||||
Is an enumerated value indicating if oversampling must be used. Oversampling is a technique for creating more samples (up-sampling) before applying the distortion effect to the audio signal.
|
||||
**/
|
||||
var oversample : OverSampleType;
|
||||
|
||||
/** @throws DOMError */
|
||||
function new( context : BaseAudioContext, ?options : WaveShaperOptions ) : Void;
|
||||
}
|
30
Kha/Tools/macos/std/js/html/audio/WaveShaperOptions.hx
Normal file
30
Kha/Tools/macos/std/js/html/audio/WaveShaperOptions.hx
Normal file
@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright (C)2005-2019 Haxe Foundation
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
* DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
// This file is generated from mozilla\WaveShaperNode.webidl. Do not edit!
|
||||
|
||||
package js.html.audio;
|
||||
|
||||
typedef WaveShaperOptions = AudioNodeOptions & {
|
||||
var ?curve : Array<Float>;
|
||||
var ?oversample : OverSampleType;
|
||||
}
|
Reference in New Issue
Block a user