OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010, Google Inc. All rights reserved. | 2 * Copyright (C) 2010, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 12 matching lines...) Expand all Loading... |
23 * DAMAGE. | 23 * DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef BaseAudioContext_h | 26 #ifndef BaseAudioContext_h |
27 #define BaseAudioContext_h | 27 #define BaseAudioContext_h |
28 | 28 |
29 #include "bindings/core/v8/ActiveScriptWrappable.h" | 29 #include "bindings/core/v8/ActiveScriptWrappable.h" |
30 #include "bindings/core/v8/ScriptPromise.h" | 30 #include "bindings/core/v8/ScriptPromise.h" |
31 #include "bindings/core/v8/ScriptPromiseResolver.h" | 31 #include "bindings/core/v8/ScriptPromiseResolver.h" |
32 #include "core/dom/DOMTypedArray.h" | 32 #include "core/dom/DOMTypedArray.h" |
33 #include "core/dom/NotShared.h" | |
34 #include "core/dom/SuspendableObject.h" | 33 #include "core/dom/SuspendableObject.h" |
35 #include "core/events/EventListener.h" | 34 #include "core/events/EventListener.h" |
36 #include "modules/EventTargetModules.h" | 35 #include "modules/EventTargetModules.h" |
37 #include "modules/ModulesExport.h" | 36 #include "modules/ModulesExport.h" |
38 #include "modules/webaudio/AsyncAudioDecoder.h" | 37 #include "modules/webaudio/AsyncAudioDecoder.h" |
39 #include "modules/webaudio/AudioDestinationNode.h" | 38 #include "modules/webaudio/AudioDestinationNode.h" |
40 #include "modules/webaudio/DeferredTaskHandler.h" | 39 #include "modules/webaudio/DeferredTaskHandler.h" |
41 #include "modules/webaudio/IIRFilterNode.h" | 40 #include "modules/webaudio/IIRFilterNode.h" |
42 #include "platform/audio/AudioBus.h" | 41 #include "platform/audio/AudioBus.h" |
43 #include "platform/heap/Handle.h" | 42 #include "platform/heap/Handle.h" |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 size_t number_of_output_channels, | 213 size_t number_of_output_channels, |
215 ExceptionState&); | 214 ExceptionState&); |
216 StereoPannerNode* createStereoPanner(ExceptionState&); | 215 StereoPannerNode* createStereoPanner(ExceptionState&); |
217 ChannelSplitterNode* createChannelSplitter(ExceptionState&); | 216 ChannelSplitterNode* createChannelSplitter(ExceptionState&); |
218 ChannelSplitterNode* createChannelSplitter(size_t number_of_outputs, | 217 ChannelSplitterNode* createChannelSplitter(size_t number_of_outputs, |
219 ExceptionState&); | 218 ExceptionState&); |
220 ChannelMergerNode* createChannelMerger(ExceptionState&); | 219 ChannelMergerNode* createChannelMerger(ExceptionState&); |
221 ChannelMergerNode* createChannelMerger(size_t number_of_inputs, | 220 ChannelMergerNode* createChannelMerger(size_t number_of_inputs, |
222 ExceptionState&); | 221 ExceptionState&); |
223 OscillatorNode* createOscillator(ExceptionState&); | 222 OscillatorNode* createOscillator(ExceptionState&); |
224 PeriodicWave* createPeriodicWave(NotShared<DOMFloat32Array> real, | 223 PeriodicWave* createPeriodicWave(DOMFloat32Array* real, |
225 NotShared<DOMFloat32Array> imag, | 224 DOMFloat32Array* imag, |
226 ExceptionState&); | 225 ExceptionState&); |
227 PeriodicWave* createPeriodicWave(NotShared<DOMFloat32Array> real, | 226 PeriodicWave* createPeriodicWave(DOMFloat32Array* real, |
228 NotShared<DOMFloat32Array> imag, | 227 DOMFloat32Array* imag, |
229 const PeriodicWaveConstraints&, | 228 const PeriodicWaveConstraints&, |
230 ExceptionState&); | 229 ExceptionState&); |
231 | 230 |
232 // Suspend | 231 // Suspend |
233 virtual ScriptPromise suspendContext(ScriptState*) = 0; | 232 virtual ScriptPromise suspendContext(ScriptState*) = 0; |
234 | 233 |
235 // Resume | 234 // Resume |
236 virtual ScriptPromise resumeContext(ScriptState*) = 0; | 235 virtual ScriptPromise resumeContext(ScriptState*) = 0; |
237 | 236 |
238 // IIRFilter | 237 // IIRFilter |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 // It is somewhat arbitrary and could be increased if necessary. | 479 // It is somewhat arbitrary and could be increased if necessary. |
481 enum { kMaxNumberOfChannels = 32 }; | 480 enum { kMaxNumberOfChannels = 32 }; |
482 | 481 |
483 Optional<AutoplayStatus> autoplay_status_; | 482 Optional<AutoplayStatus> autoplay_status_; |
484 AudioIOPosition output_position_; | 483 AudioIOPosition output_position_; |
485 }; | 484 }; |
486 | 485 |
487 } // namespace blink | 486 } // namespace blink |
488 | 487 |
489 #endif // BaseAudioContext_h | 488 #endif // BaseAudioContext_h |
OLD | NEW |