mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
Big replacement: bool with boolean
This commit is contained in:
Vendored
+3
-3
@@ -13,7 +13,7 @@ interface webkitAudioContext {
|
||||
|
||||
createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;
|
||||
|
||||
createBuffer(buffer: ArrayBuffer, mixToMono: bool): AudioBuffer;
|
||||
createBuffer(buffer: ArrayBuffer, mixToMono: boolean): AudioBuffer;
|
||||
|
||||
decodeAudioData(audioData: ArrayBuffer, successCallback: any, errorCallback?: any): void;
|
||||
createBufferSource(): AudioBufferSourceNode;
|
||||
@@ -111,7 +111,7 @@ interface AudioBufferSourceNode extends AudioSourceNode {
|
||||
|
||||
buffer: AudioBuffer;
|
||||
playbackRate: AudioParam;
|
||||
loop: bool;
|
||||
loop: boolean;
|
||||
loopStart: number;
|
||||
loopEnd: number;
|
||||
start(when: number, offset?: number, duration?: number): void;
|
||||
@@ -169,7 +169,7 @@ interface AudioListener {
|
||||
interface ConvolverNode extends AudioNode {
|
||||
|
||||
buffer: AudioBuffer;
|
||||
normalize: bool;
|
||||
normalize: boolean;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Vendored
+3
-3
@@ -51,7 +51,7 @@ interface AudioContext {
|
||||
* @param buffer the audio file data (for example from a .wav file).
|
||||
* @param mixToMono if a mixdown to mono will be performed. Normally, this would not be set.
|
||||
*/
|
||||
createBuffer(buffer: ArrayBuffer, mixToMono: bool): AudioBuffer;
|
||||
createBuffer(buffer: ArrayBuffer, mixToMono: boolean): AudioBuffer;
|
||||
|
||||
/**
|
||||
* Asynchronously decodes the audio file data contained in the ArrayBuffer. The ArrayBuffer can, for example, be loaded from an XMLHttpRequest's response attribute after setting the responseType to "arraybuffer". Audio file data can be in any of the formats supported by the audio element.
|
||||
@@ -518,7 +518,7 @@ interface AudioBufferSourceNode extends AudioSourceNode {
|
||||
/**
|
||||
* Indicates if the audio data should play in a loop. The default value is false.
|
||||
*/
|
||||
loop: bool;
|
||||
loop: boolean;
|
||||
|
||||
/**
|
||||
* Schedules a sound to playback at an exact time.
|
||||
@@ -782,7 +782,7 @@ interface ConvolverNode extends AudioNode {
|
||||
/**
|
||||
* Controls whether the impulse response from the buffer will be scaled by an equal-power normalization when the buffer atttribute is set. Its default value is true in order to achieve a more uniform output level from the convolver when loaded with diverse impulse responses. If normalize is set to false, then the convolution will be rendered with no pre-processing/scaling of the impulse response. Changes to this value do not take effect until the next time the buffer attribute is set.
|
||||
*/
|
||||
normalize: bool;
|
||||
normalize: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user