Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(577)

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.h

Issue 1948653003: Add PeriodicWaveConstraints dictionary (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test failures Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 class ExceptionState; 64 class ExceptionState;
65 class GainNode; 65 class GainNode;
66 class HTMLMediaElement; 66 class HTMLMediaElement;
67 class IIRFilterNode; 67 class IIRFilterNode;
68 class MediaElementAudioSourceNode; 68 class MediaElementAudioSourceNode;
69 class MediaStreamAudioDestinationNode; 69 class MediaStreamAudioDestinationNode;
70 class MediaStreamAudioSourceNode; 70 class MediaStreamAudioSourceNode;
71 class OscillatorNode; 71 class OscillatorNode;
72 class PannerNode; 72 class PannerNode;
73 class PeriodicWave; 73 class PeriodicWave;
74 class PeriodicWaveConstraints;
74 class ScriptProcessorNode; 75 class ScriptProcessorNode;
75 class ScriptPromiseResolver; 76 class ScriptPromiseResolver;
76 class ScriptState; 77 class ScriptState;
77 class SecurityOrigin; 78 class SecurityOrigin;
78 class StereoPannerNode; 79 class StereoPannerNode;
79 class WaveShaperNode; 80 class WaveShaperNode;
80 81
81 // AbstractAudioContext is the cornerstone of the web audio API and all AudioNod es are created from it. 82 // AbstractAudioContext is the cornerstone of the web audio API and all AudioNod es are created from it.
82 // For thread safety between the audio thread and the main thread, it has a rend ering graph locking mechanism. 83 // For thread safety between the audio thread and the main thread, it has a rend ering graph locking mechanism.
83 84
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 ScriptProcessorNode* createScriptProcessor(size_t bufferSize, ExceptionState &); 166 ScriptProcessorNode* createScriptProcessor(size_t bufferSize, ExceptionState &);
166 ScriptProcessorNode* createScriptProcessor(size_t bufferSize, size_t numberO fInputChannels, ExceptionState&); 167 ScriptProcessorNode* createScriptProcessor(size_t bufferSize, size_t numberO fInputChannels, ExceptionState&);
167 ScriptProcessorNode* createScriptProcessor(size_t bufferSize, size_t numberO fInputChannels, size_t numberOfOutputChannels, ExceptionState&); 168 ScriptProcessorNode* createScriptProcessor(size_t bufferSize, size_t numberO fInputChannels, size_t numberOfOutputChannels, ExceptionState&);
168 StereoPannerNode* createStereoPanner(ExceptionState&); 169 StereoPannerNode* createStereoPanner(ExceptionState&);
169 ChannelSplitterNode* createChannelSplitter(ExceptionState&); 170 ChannelSplitterNode* createChannelSplitter(ExceptionState&);
170 ChannelSplitterNode* createChannelSplitter(size_t numberOfOutputs, Exception State&); 171 ChannelSplitterNode* createChannelSplitter(size_t numberOfOutputs, Exception State&);
171 ChannelMergerNode* createChannelMerger(ExceptionState&); 172 ChannelMergerNode* createChannelMerger(ExceptionState&);
172 ChannelMergerNode* createChannelMerger(size_t numberOfInputs, ExceptionState &); 173 ChannelMergerNode* createChannelMerger(size_t numberOfInputs, ExceptionState &);
173 OscillatorNode* createOscillator(ExceptionState&); 174 OscillatorNode* createOscillator(ExceptionState&);
174 PeriodicWave* createPeriodicWave(DOMFloat32Array* real, DOMFloat32Array* ima g, ExceptionState&); 175 PeriodicWave* createPeriodicWave(DOMFloat32Array* real, DOMFloat32Array* ima g, ExceptionState&);
175 PeriodicWave* createPeriodicWave(DOMFloat32Array* real, DOMFloat32Array* ima g, const Dictionary&, ExceptionState&); 176 PeriodicWave* createPeriodicWave(DOMFloat32Array* real, DOMFloat32Array* ima g, const PeriodicWaveConstraints&, ExceptionState&);
176 177
177 // Close 178 // Close
178 virtual ScriptPromise closeContext(ScriptState*) = 0; 179 virtual ScriptPromise closeContext(ScriptState*) = 0;
179 180
180 // Suspend 181 // Suspend
181 virtual ScriptPromise suspendContext(ScriptState*) = 0; 182 virtual ScriptPromise suspendContext(ScriptState*) = 0;
182 183
183 // Resume 184 // Resume
184 virtual ScriptPromise resumeContext(ScriptState*) = 0; 185 virtual ScriptPromise resumeContext(ScriptState*) = 0;
185 186
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 Member<PeriodicWave> m_periodicWaveTriangle; 357 Member<PeriodicWave> m_periodicWaveTriangle;
357 358
358 // This is considering 32 is large enough for multiple channels audio. 359 // This is considering 32 is large enough for multiple channels audio.
359 // It is somewhat arbitrary and could be increased if necessary. 360 // It is somewhat arbitrary and could be increased if necessary.
360 enum { MaxNumberOfChannels = 32 }; 361 enum { MaxNumberOfChannels = 32 };
361 }; 362 };
362 363
363 } // namespace blink 364 } // namespace blink
364 365
365 #endif // AbstractAudioContext_h 366 #endif // AbstractAudioContext_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/modules.gypi ('k') | third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698