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

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

Issue 2345693002: Move close() from BaseAudioContext to AudioContext (Closed)
Patch Set: Update expected results Created 4 years, 3 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 ScriptProcessorNode* createScriptProcessor(size_t bufferSize, size_t numberO fInputChannels, size_t numberOfOutputChannels, ExceptionState&); 169 ScriptProcessorNode* createScriptProcessor(size_t bufferSize, size_t numberO fInputChannels, size_t numberOfOutputChannels, ExceptionState&);
170 StereoPannerNode* createStereoPanner(ExceptionState&); 170 StereoPannerNode* createStereoPanner(ExceptionState&);
171 ChannelSplitterNode* createChannelSplitter(ExceptionState&); 171 ChannelSplitterNode* createChannelSplitter(ExceptionState&);
172 ChannelSplitterNode* createChannelSplitter(size_t numberOfOutputs, Exception State&); 172 ChannelSplitterNode* createChannelSplitter(size_t numberOfOutputs, Exception State&);
173 ChannelMergerNode* createChannelMerger(ExceptionState&); 173 ChannelMergerNode* createChannelMerger(ExceptionState&);
174 ChannelMergerNode* createChannelMerger(size_t numberOfInputs, ExceptionState &); 174 ChannelMergerNode* createChannelMerger(size_t numberOfInputs, ExceptionState &);
175 OscillatorNode* createOscillator(ExceptionState&); 175 OscillatorNode* createOscillator(ExceptionState&);
176 PeriodicWave* createPeriodicWave(DOMFloat32Array* real, DOMFloat32Array* ima g, ExceptionState&); 176 PeriodicWave* createPeriodicWave(DOMFloat32Array* real, DOMFloat32Array* ima g, ExceptionState&);
177 PeriodicWave* createPeriodicWave(DOMFloat32Array* real, DOMFloat32Array* ima g, const PeriodicWaveConstraints&, ExceptionState&); 177 PeriodicWave* createPeriodicWave(DOMFloat32Array* real, DOMFloat32Array* ima g, const PeriodicWaveConstraints&, ExceptionState&);
178 178
179 // Close
180 virtual ScriptPromise closeContext(ScriptState*) = 0;
181
182 // Suspend 179 // Suspend
183 virtual ScriptPromise suspendContext(ScriptState*) = 0; 180 virtual ScriptPromise suspendContext(ScriptState*) = 0;
184 181
185 // Resume 182 // Resume
186 virtual ScriptPromise resumeContext(ScriptState*) = 0; 183 virtual ScriptPromise resumeContext(ScriptState*) = 0;
187 184
188 // IIRFilter 185 // IIRFilter
189 IIRFilterNode* createIIRFilter(Vector<double> feedforwardCoef, Vector<double > feedbackCoef, 186 IIRFilterNode* createIIRFilter(Vector<double> feedforwardCoef, Vector<double > feedbackCoef,
190 ExceptionState&); 187 ExceptionState&);
191 188
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 Member<PeriodicWave> m_periodicWaveTriangle; 370 Member<PeriodicWave> m_periodicWaveTriangle;
374 371
375 // This is considering 32 is large enough for multiple channels audio. 372 // This is considering 32 is large enough for multiple channels audio.
376 // It is somewhat arbitrary and could be increased if necessary. 373 // It is somewhat arbitrary and could be increased if necessary.
377 enum { MaxNumberOfChannels = 32 }; 374 enum { MaxNumberOfChannels = 32 };
378 }; 375 };
379 376
380 } // namespace blink 377 } // namespace blink
381 378
382 #endif // BaseAudioContext_h 379 #endif // BaseAudioContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698