| 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 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 #include "modules/webaudio/AudioNode.h" | 26 #include "modules/webaudio/AudioNode.h" |
| 27 #include "bindings/core/v8/ExceptionState.h" | 27 #include "bindings/core/v8/ExceptionState.h" |
| 28 #include "core/dom/ExceptionCode.h" | 28 #include "core/dom/ExceptionCode.h" |
| 29 #include "modules/webaudio/AudioNodeInput.h" | 29 #include "modules/webaudio/AudioNodeInput.h" |
| 30 #include "modules/webaudio/AudioNodeOptions.h" | 30 #include "modules/webaudio/AudioNodeOptions.h" |
| 31 #include "modules/webaudio/AudioNodeOutput.h" | 31 #include "modules/webaudio/AudioNodeOutput.h" |
| 32 #include "modules/webaudio/AudioParam.h" | 32 #include "modules/webaudio/AudioParam.h" |
| 33 #include "modules/webaudio/BaseAudioContext.h" | 33 #include "modules/webaudio/BaseAudioContext.h" |
| 34 #include "platform/InstanceCounters.h" | 34 #include "platform/InstanceCounters.h" |
| 35 #include "wtf/Atomics.h" | 35 #include "platform/wtf/Atomics.h" |
| 36 | 36 |
| 37 #if DEBUG_AUDIONODE_REFERENCES | 37 #if DEBUG_AUDIONODE_REFERENCES |
| 38 #include <stdio.h> | 38 #include <stdio.h> |
| 39 #endif | 39 #endif |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 AudioHandler::AudioHandler(NodeType node_type, | 43 AudioHandler::AudioHandler(NodeType node_type, |
| 44 AudioNode& node, | 44 AudioNode& node, |
| 45 float sample_rate) | 45 float sample_rate) |
| (...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 967 } | 967 } |
| 968 | 968 |
| 969 void AudioNode::DidAddOutput(unsigned number_of_outputs) { | 969 void AudioNode::DidAddOutput(unsigned number_of_outputs) { |
| 970 connected_nodes_.push_back(nullptr); | 970 connected_nodes_.push_back(nullptr); |
| 971 DCHECK_EQ(number_of_outputs, connected_nodes_.size()); | 971 DCHECK_EQ(number_of_outputs, connected_nodes_.size()); |
| 972 connected_params_.push_back(nullptr); | 972 connected_params_.push_back(nullptr); |
| 973 DCHECK_EQ(number_of_outputs, connected_params_.size()); | 973 DCHECK_EQ(number_of_outputs, connected_params_.size()); |
| 974 } | 974 } |
| 975 | 975 |
| 976 } // namespace blink | 976 } // namespace blink |
| OLD | NEW |