| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 case kNodeTypeChannelSplitter: | 144 case kNodeTypeChannelSplitter: |
| 145 return "ChannelSplitterNode"; | 145 return "ChannelSplitterNode"; |
| 146 case kNodeTypeChannelMerger: | 146 case kNodeTypeChannelMerger: |
| 147 return "ChannelMergerNode"; | 147 return "ChannelMergerNode"; |
| 148 case kNodeTypeAnalyser: | 148 case kNodeTypeAnalyser: |
| 149 return "AnalyserNode"; | 149 return "AnalyserNode"; |
| 150 case kNodeTypeDynamicsCompressor: | 150 case kNodeTypeDynamicsCompressor: |
| 151 return "DynamicsCompressorNode"; | 151 return "DynamicsCompressorNode"; |
| 152 case kNodeTypeWaveShaper: | 152 case kNodeTypeWaveShaper: |
| 153 return "WaveShaperNode"; | 153 return "WaveShaperNode"; |
| 154 case kNodeTypeAudioWorklet: |
| 155 return "AudioWorkletNode"; |
| 154 case kNodeTypeUnknown: | 156 case kNodeTypeUnknown: |
| 155 case kNodeTypeEnd: | 157 case kNodeTypeEnd: |
| 156 default: | 158 default: |
| 157 NOTREACHED(); | 159 NOTREACHED(); |
| 158 return "UnknownNode"; | 160 return "UnknownNode"; |
| 159 } | 161 } |
| 160 } | 162 } |
| 161 | 163 |
| 162 void AudioHandler::SetNodeType(NodeType type) { | 164 void AudioHandler::SetNodeType(NodeType type) { |
| 163 // Don't allow the node type to be changed to a different node type, after | 165 // Don't allow the node type to be changed to a different node type, after |
| (...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 961 } | 963 } |
| 962 | 964 |
| 963 void AudioNode::DidAddOutput(unsigned number_of_outputs) { | 965 void AudioNode::DidAddOutput(unsigned number_of_outputs) { |
| 964 connected_nodes_.push_back(nullptr); | 966 connected_nodes_.push_back(nullptr); |
| 965 DCHECK_EQ(number_of_outputs, connected_nodes_.size()); | 967 DCHECK_EQ(number_of_outputs, connected_nodes_.size()); |
| 966 connected_params_.push_back(nullptr); | 968 connected_params_.push_back(nullptr); |
| 967 DCHECK_EQ(number_of_outputs, connected_params_.size()); | 969 DCHECK_EQ(number_of_outputs, connected_params_.size()); |
| 968 } | 970 } |
| 969 | 971 |
| 970 } // namespace blink | 972 } // namespace blink |
| OLD | NEW |