OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010, Google Inc. All rights reserved. | 2 * Copyright (C) 2010, Google Inc. All rights reserved. |
3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 [RaisesException] AudioBuffer createBuffer(ArrayBuffer? buffer, boolean mixT
oMono); | 48 [RaisesException] AudioBuffer createBuffer(ArrayBuffer? buffer, boolean mixT
oMono); |
49 | 49 |
50 // Asynchronous audio file data decoding. | 50 // Asynchronous audio file data decoding. |
51 [RaisesException] void decodeAudioData(ArrayBuffer audioData, AudioBufferCal
lback successCallback, optional AudioBufferCallback errorCallback); | 51 [RaisesException] void decodeAudioData(ArrayBuffer audioData, AudioBufferCal
lback successCallback, optional AudioBufferCallback errorCallback); |
52 | 52 |
53 // Sources | 53 // Sources |
54 AudioBufferSourceNode createBufferSource(); | 54 AudioBufferSourceNode createBufferSource(); |
55 | 55 |
56 [RaisesException] MediaElementAudioSourceNode createMediaElementSource(HTMLM
ediaElement mediaElement); | 56 [RaisesException] MediaElementAudioSourceNode createMediaElementSource(HTMLM
ediaElement mediaElement); |
57 | 57 |
58 #if defined(ENABLE_MEDIA_STREAM) && ENABLE_MEDIA_STREAM | |
59 [RaisesException] MediaStreamAudioSourceNode createMediaStreamSource(MediaSt
ream mediaStream); | 58 [RaisesException] MediaStreamAudioSourceNode createMediaStreamSource(MediaSt
ream mediaStream); |
60 MediaStreamAudioDestinationNode createMediaStreamDestination(); | 59 MediaStreamAudioDestinationNode createMediaStreamDestination(); |
61 #endif | |
62 | 60 |
63 // Processing nodes | 61 // Processing nodes |
64 GainNode createGain(); | 62 GainNode createGain(); |
65 [RaisesException] DelayNode createDelay(optional double maxDelayTime); | 63 [RaisesException] DelayNode createDelay(optional double maxDelayTime); |
66 BiquadFilterNode createBiquadFilter(); | 64 BiquadFilterNode createBiquadFilter(); |
67 WaveShaperNode createWaveShaper(); | 65 WaveShaperNode createWaveShaper(); |
68 PannerNode createPanner(); | 66 PannerNode createPanner(); |
69 ConvolverNode createConvolver(); | 67 ConvolverNode createConvolver(); |
70 DynamicsCompressorNode createDynamicsCompressor(); | 68 DynamicsCompressorNode createDynamicsCompressor(); |
71 AnalyserNode createAnalyser(); | 69 AnalyserNode createAnalyser(); |
72 [RaisesException] ScriptProcessorNode createScriptProcessor(unsigned long bu
fferSize, optional unsigned long numberOfInputChannels, optional unsigned long n
umberOfOutputChannels); | 70 [RaisesException] ScriptProcessorNode createScriptProcessor(unsigned long bu
fferSize, optional unsigned long numberOfInputChannels, optional unsigned long n
umberOfOutputChannels); |
73 OscillatorNode createOscillator(); | 71 OscillatorNode createOscillator(); |
74 [RaisesException] WaveTable createWaveTable(Float32Array real, Float32Array
imag); | 72 [RaisesException] WaveTable createWaveTable(Float32Array real, Float32Array
imag); |
75 | 73 |
76 // Channel splitting and merging | 74 // Channel splitting and merging |
77 [RaisesException] ChannelSplitterNode createChannelSplitter(optional unsigne
d long numberOfOutputs); | 75 [RaisesException] ChannelSplitterNode createChannelSplitter(optional unsigne
d long numberOfOutputs); |
78 [RaisesException] ChannelMergerNode createChannelMerger(optional unsigned lo
ng numberOfInputs); | 76 [RaisesException] ChannelMergerNode createChannelMerger(optional unsigned lo
ng numberOfInputs); |
79 | 77 |
80 // Offline rendering | 78 // Offline rendering |
81 // void prepareOfflineBufferRendering(unsigned long numberOfChannels, unsign
ed long numberOfFrames, float sampleRate); | 79 // void prepareOfflineBufferRendering(unsigned long numberOfChannels, unsign
ed long numberOfFrames, float sampleRate); |
82 attribute EventListener oncomplete; | 80 attribute EventListener oncomplete; |
83 void startRendering(); | 81 void startRendering(); |
84 | 82 |
85 [MeasureAs=LegacyWebAudio, ImplementedAs=createGain] GainNode createGainNode
(); | 83 [MeasureAs=LegacyWebAudio, ImplementedAs=createGain] GainNode createGainNode
(); |
86 [MeasureAs=LegacyWebAudio, ImplementedAs=createDelay, RaisesException] Delay
Node createDelayNode(optional double maxDelayTime); | 84 [MeasureAs=LegacyWebAudio, ImplementedAs=createDelay, RaisesException] Delay
Node createDelayNode(optional double maxDelayTime); |
87 | 85 |
88 [MeasureAs=LegacyWebAudio, ImplementedAs=createScriptProcessor, RaisesExcept
ion] ScriptProcessorNode createJavaScriptNode(unsigned long bufferSize, optional
unsigned long numberOfInputChannels, optional unsigned long numberOfOutputChann
els); | 86 [MeasureAs=LegacyWebAudio, ImplementedAs=createScriptProcessor, RaisesExcept
ion] ScriptProcessorNode createJavaScriptNode(unsigned long bufferSize, optional
unsigned long numberOfInputChannels, optional unsigned long numberOfOutputChann
els); |
89 | 87 |
90 }; | 88 }; |
OLD | NEW |