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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/AudioNode.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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 NodeTypeStereoPanner = 10, 84 NodeTypeStereoPanner = 10,
85 NodeTypeConvolver = 11, 85 NodeTypeConvolver = 11,
86 NodeTypeDelay = 12, 86 NodeTypeDelay = 12,
87 NodeTypeGain = 13, 87 NodeTypeGain = 13,
88 NodeTypeChannelSplitter = 14, 88 NodeTypeChannelSplitter = 14,
89 NodeTypeChannelMerger = 15, 89 NodeTypeChannelMerger = 15,
90 NodeTypeAnalyser = 16, 90 NodeTypeAnalyser = 16,
91 NodeTypeDynamicsCompressor = 17, 91 NodeTypeDynamicsCompressor = 17,
92 NodeTypeWaveShaper = 18, 92 NodeTypeWaveShaper = 18,
93 NodeTypeIIRFilter = 19, 93 NodeTypeIIRFilter = 19,
94 NodeTypeEnd = 20 94 NodeTypeConstantSource = 20,
95 NodeTypeEnd = 21
95 }; 96 };
96 97
97 AudioHandler(NodeType, AudioNode&, float sampleRate); 98 AudioHandler(NodeType, AudioNode&, float sampleRate);
98 virtual ~AudioHandler(); 99 virtual ~AudioHandler();
99 // dispose() is called when the owner AudioNode is about to be 100 // dispose() is called when the owner AudioNode is about to be
100 // destructed. This must be called in the main thread, and while the graph 101 // destructed. This must be called in the main thread, and while the graph
101 // lock is held. 102 // lock is held.
102 // Do not release resources used by an audio rendering thread in dispose(). 103 // Do not release resources used by an audio rendering thread in dispose().
103 virtual void dispose(); 104 virtual void dispose();
104 105
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 HeapVector<Member<HeapHashSet<Member<AudioNode>>>> m_connectedNodes; 347 HeapVector<Member<HeapHashSet<Member<AudioNode>>>> m_connectedNodes;
347 // Represents audio node graph with Oilpan references. N-th HeapHashSet 348 // Represents audio node graph with Oilpan references. N-th HeapHashSet
348 // represents a set of AudioParam objects connected to this AudioNode's N-th 349 // represents a set of AudioParam objects connected to this AudioNode's N-th
349 // output. 350 // output.
350 HeapVector<Member<HeapHashSet<Member<AudioParam>>>> m_connectedParams; 351 HeapVector<Member<HeapHashSet<Member<AudioParam>>>> m_connectedParams;
351 }; 352 };
352 353
353 } // namespace blink 354 } // namespace blink
354 355
355 #endif // AudioNode_h 356 #endif // AudioNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698