OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |