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

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

Issue 2134813002: Implement ConstantSourceNode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 2 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 class AnalyserNode; 51 class AnalyserNode;
52 class AudioBuffer; 52 class AudioBuffer;
53 class AudioBufferCallback; 53 class AudioBufferCallback;
54 class AudioBufferSourceNode; 54 class AudioBufferSourceNode;
55 class AudioListener; 55 class AudioListener;
56 class AudioSummingJunction; 56 class AudioSummingJunction;
57 class BiquadFilterNode; 57 class BiquadFilterNode;
58 class ChannelMergerNode; 58 class ChannelMergerNode;
59 class ChannelSplitterNode; 59 class ChannelSplitterNode;
60 class ConstantSourceNode;
60 class ConvolverNode; 61 class ConvolverNode;
61 class DelayNode; 62 class DelayNode;
62 class Dictionary; 63 class Dictionary;
63 class Document; 64 class Document;
64 class DynamicsCompressorNode; 65 class DynamicsCompressorNode;
65 class ExceptionState; 66 class ExceptionState;
66 class GainNode; 67 class GainNode;
67 class HTMLMediaElement; 68 class HTMLMediaElement;
68 class IIRFilterNode; 69 class IIRFilterNode;
69 class MediaElementAudioSourceNode; 70 class MediaElementAudioSourceNode;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 AudioBufferCallback* successCallback, 163 AudioBufferCallback* successCallback,
163 AudioBufferCallback* errorCallback); 164 AudioBufferCallback* errorCallback);
164 165
165 AudioListener* listener() { return m_listener; } 166 AudioListener* listener() { return m_listener; }
166 167
167 virtual bool hasRealtimeConstraint() = 0; 168 virtual bool hasRealtimeConstraint() = 0;
168 169
169 // The AudioNode create methods are called on the main thread (from 170 // The AudioNode create methods are called on the main thread (from
170 // JavaScript). 171 // JavaScript).
171 AudioBufferSourceNode* createBufferSource(ExceptionState&); 172 AudioBufferSourceNode* createBufferSource(ExceptionState&);
173 ConstantSourceNode* createConstantSource(ExceptionState&);
172 MediaElementAudioSourceNode* createMediaElementSource(HTMLMediaElement*, 174 MediaElementAudioSourceNode* createMediaElementSource(HTMLMediaElement*,
173 ExceptionState&); 175 ExceptionState&);
174 MediaStreamAudioSourceNode* createMediaStreamSource(MediaStream*, 176 MediaStreamAudioSourceNode* createMediaStreamSource(MediaStream*,
175 ExceptionState&); 177 ExceptionState&);
176 MediaStreamAudioDestinationNode* createMediaStreamDestination( 178 MediaStreamAudioDestinationNode* createMediaStreamDestination(
177 ExceptionState&); 179 ExceptionState&);
178 GainNode* createGain(ExceptionState&); 180 GainNode* createGain(ExceptionState&);
179 BiquadFilterNode* createBiquadFilter(ExceptionState&); 181 BiquadFilterNode* createBiquadFilter(ExceptionState&);
180 WaveShaperNode* createWaveShaper(ExceptionState&); 182 WaveShaperNode* createWaveShaper(ExceptionState&);
181 DelayNode* createDelay(ExceptionState&); 183 DelayNode* createDelay(ExceptionState&);
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 Member<PeriodicWave> m_periodicWaveTriangle; 420 Member<PeriodicWave> m_periodicWaveTriangle;
419 421
420 // This is considering 32 is large enough for multiple channels audio. 422 // This is considering 32 is large enough for multiple channels audio.
421 // It is somewhat arbitrary and could be increased if necessary. 423 // It is somewhat arbitrary and could be increased if necessary.
422 enum { MaxNumberOfChannels = 32 }; 424 enum { MaxNumberOfChannels = 32 };
423 }; 425 };
424 426
425 } // namespace blink 427 } // namespace blink
426 428
427 #endif // BaseAudioContext_h 429 #endif // BaseAudioContext_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/BUILD.gn ('k') | third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698