| 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" |
| 33 #include "core/dom/SuspendableObject.h" | 34 #include "core/dom/SuspendableObject.h" |
| 34 #include "core/events/EventListener.h" | 35 #include "core/events/EventListener.h" |
| 35 #include "modules/EventTargetModules.h" | 36 #include "modules/EventTargetModules.h" |
| 36 #include "modules/ModulesExport.h" | 37 #include "modules/ModulesExport.h" |
| 37 #include "modules/webaudio/AsyncAudioDecoder.h" | 38 #include "modules/webaudio/AsyncAudioDecoder.h" |
| 38 #include "modules/webaudio/AudioDestinationNode.h" | 39 #include "modules/webaudio/AudioDestinationNode.h" |
| 39 #include "modules/webaudio/DeferredTaskHandler.h" | 40 #include "modules/webaudio/DeferredTaskHandler.h" |
| 40 #include "modules/webaudio/IIRFilterNode.h" | 41 #include "modules/webaudio/IIRFilterNode.h" |
| 41 #include "platform/audio/AudioBus.h" | 42 #include "platform/audio/AudioBus.h" |
| 42 #include "platform/heap/Handle.h" | 43 #include "platform/heap/Handle.h" |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 size_t number_of_output_channels, | 214 size_t number_of_output_channels, |
| 214 ExceptionState&); | 215 ExceptionState&); |
| 215 StereoPannerNode* createStereoPanner(ExceptionState&); | 216 StereoPannerNode* createStereoPanner(ExceptionState&); |
| 216 ChannelSplitterNode* createChannelSplitter(ExceptionState&); | 217 ChannelSplitterNode* createChannelSplitter(ExceptionState&); |
| 217 ChannelSplitterNode* createChannelSplitter(size_t number_of_outputs, | 218 ChannelSplitterNode* createChannelSplitter(size_t number_of_outputs, |
| 218 ExceptionState&); | 219 ExceptionState&); |
| 219 ChannelMergerNode* createChannelMerger(ExceptionState&); | 220 ChannelMergerNode* createChannelMerger(ExceptionState&); |
| 220 ChannelMergerNode* createChannelMerger(size_t number_of_inputs, | 221 ChannelMergerNode* createChannelMerger(size_t number_of_inputs, |
| 221 ExceptionState&); | 222 ExceptionState&); |
| 222 OscillatorNode* createOscillator(ExceptionState&); | 223 OscillatorNode* createOscillator(ExceptionState&); |
| 223 PeriodicWave* createPeriodicWave(DOMFloat32Array* real, | 224 PeriodicWave* createPeriodicWave(NotShared<DOMFloat32Array> real, |
| 224 DOMFloat32Array* imag, | 225 NotShared<DOMFloat32Array> imag, |
| 225 ExceptionState&); | 226 ExceptionState&); |
| 226 PeriodicWave* createPeriodicWave(DOMFloat32Array* real, | 227 PeriodicWave* createPeriodicWave(NotShared<DOMFloat32Array> real, |
| 227 DOMFloat32Array* imag, | 228 NotShared<DOMFloat32Array> imag, |
| 228 const PeriodicWaveConstraints&, | 229 const PeriodicWaveConstraints&, |
| 229 ExceptionState&); | 230 ExceptionState&); |
| 230 | 231 |
| 231 // Suspend | 232 // Suspend |
| 232 virtual ScriptPromise suspendContext(ScriptState*) = 0; | 233 virtual ScriptPromise suspendContext(ScriptState*) = 0; |
| 233 | 234 |
| 234 // Resume | 235 // Resume |
| 235 virtual ScriptPromise resumeContext(ScriptState*) = 0; | 236 virtual ScriptPromise resumeContext(ScriptState*) = 0; |
| 236 | 237 |
| 237 // IIRFilter | 238 // IIRFilter |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 // It is somewhat arbitrary and could be increased if necessary. | 480 // It is somewhat arbitrary and could be increased if necessary. |
| 480 enum { kMaxNumberOfChannels = 32 }; | 481 enum { kMaxNumberOfChannels = 32 }; |
| 481 | 482 |
| 482 Optional<AutoplayStatus> autoplay_status_; | 483 Optional<AutoplayStatus> autoplay_status_; |
| 483 AudioIOPosition output_position_; | 484 AudioIOPosition output_position_; |
| 484 }; | 485 }; |
| 485 | 486 |
| 486 } // namespace blink | 487 } // namespace blink |
| 487 | 488 |
| 488 #endif // BaseAudioContext_h | 489 #endif // BaseAudioContext_h |
| OLD | NEW |