| 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 kNodeTypeConvolver = 11, | 88 kNodeTypeConvolver = 11, |
| 89 kNodeTypeDelay = 12, | 89 kNodeTypeDelay = 12, |
| 90 kNodeTypeGain = 13, | 90 kNodeTypeGain = 13, |
| 91 kNodeTypeChannelSplitter = 14, | 91 kNodeTypeChannelSplitter = 14, |
| 92 kNodeTypeChannelMerger = 15, | 92 kNodeTypeChannelMerger = 15, |
| 93 kNodeTypeAnalyser = 16, | 93 kNodeTypeAnalyser = 16, |
| 94 kNodeTypeDynamicsCompressor = 17, | 94 kNodeTypeDynamicsCompressor = 17, |
| 95 kNodeTypeWaveShaper = 18, | 95 kNodeTypeWaveShaper = 18, |
| 96 kNodeTypeIIRFilter = 19, | 96 kNodeTypeIIRFilter = 19, |
| 97 kNodeTypeConstantSource = 20, | 97 kNodeTypeConstantSource = 20, |
| 98 kNodeTypeEnd = 21 | 98 kNodeTypeAudioWorklet = 21, |
| 99 kNodeTypeEnd = 22 |
| 99 }; | 100 }; |
| 100 | 101 |
| 101 AudioHandler(NodeType, AudioNode&, float sample_rate); | 102 AudioHandler(NodeType, AudioNode&, float sample_rate); |
| 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 HeapVector<Member<HeapHashSet<Member<AudioNode>>>> connected_nodes_; | 373 HeapVector<Member<HeapHashSet<Member<AudioNode>>>> connected_nodes_; |
| 373 // Represents audio node graph with Oilpan references. N-th HeapHashSet | 374 // Represents audio node graph with Oilpan references. N-th HeapHashSet |
| 374 // represents a set of AudioParam objects connected to this AudioNode's N-th | 375 // represents a set of AudioParam objects connected to this AudioNode's N-th |
| 375 // output. | 376 // output. |
| 376 HeapVector<Member<HeapHashSet<Member<AudioParam>>>> connected_params_; | 377 HeapVector<Member<HeapHashSet<Member<AudioParam>>>> connected_params_; |
| 377 }; | 378 }; |
| 378 | 379 |
| 379 } // namespace blink | 380 } // namespace blink |
| 380 | 381 |
| 381 #endif // AudioNode_h | 382 #endif // AudioNode_h |
| OLD | NEW |