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

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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 NodeTypeStereoPanner = 10, 88 NodeTypeStereoPanner = 10,
89 NodeTypeConvolver = 11, 89 NodeTypeConvolver = 11,
90 NodeTypeDelay = 12, 90 NodeTypeDelay = 12,
91 NodeTypeGain = 13, 91 NodeTypeGain = 13,
92 NodeTypeChannelSplitter = 14, 92 NodeTypeChannelSplitter = 14,
93 NodeTypeChannelMerger = 15, 93 NodeTypeChannelMerger = 15,
94 NodeTypeAnalyser = 16, 94 NodeTypeAnalyser = 16,
95 NodeTypeDynamicsCompressor = 17, 95 NodeTypeDynamicsCompressor = 17,
96 NodeTypeWaveShaper = 18, 96 NodeTypeWaveShaper = 18,
97 NodeTypeIIRFilter = 19, 97 NodeTypeIIRFilter = 19,
98 NodeTypeEnd = 20 98 NodeTypeConstantSource = 20,
99 NodeTypeEnd = 21
99 }; 100 };
100 101
101 AudioHandler(NodeType, AudioNode&, float sampleRate); 102 AudioHandler(NodeType, AudioNode&, float sampleRate);
102 virtual ~AudioHandler(); 103 virtual ~AudioHandler();
103 // dispose() is called when the owner AudioNode is about to be 104 // dispose() is called when the owner AudioNode is about to be
104 // destructed. This must be called in the main thread, and while the graph 105 // destructed. This must be called in the main thread, and while the graph
105 // lock is held. 106 // lock is held.
106 // Do not release resources used by an audio rendering thread in dispose(). 107 // Do not release resources used by an audio rendering thread in dispose().
107 virtual void dispose(); 108 virtual void dispose();
108 109
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 HeapVector<Member<HeapHashSet<Member<AudioNode>>>> m_connectedNodes; 366 HeapVector<Member<HeapHashSet<Member<AudioNode>>>> m_connectedNodes;
366 // Represents audio node graph with Oilpan references. N-th HeapHashSet 367 // Represents audio node graph with Oilpan references. N-th HeapHashSet
367 // represents a set of AudioParam objects connected to this AudioNode's N-th 368 // represents a set of AudioParam objects connected to this AudioNode's N-th
368 // output. 369 // output.
369 HeapVector<Member<HeapHashSet<Member<AudioParam>>>> m_connectedParams; 370 HeapVector<Member<HeapHashSet<Member<AudioParam>>>> m_connectedParams;
370 }; 371 };
371 372
372 } // namespace blink 373 } // namespace blink
373 374
374 #endif // AudioNode_h 375 #endif // AudioNode_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/modules_idl_files.gni ('k') | third_party/WebKit/Source/modules/webaudio/AudioParam.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698