| 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 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 #include "modules/webaudio/AudioNode.h" | 25 #include "modules/webaudio/AudioNode.h" |
| 26 #include "bindings/core/v8/ExceptionState.h" | 26 #include "bindings/core/v8/ExceptionState.h" |
| 27 #include "core/dom/ExceptionCode.h" | 27 #include "core/dom/ExceptionCode.h" |
| 28 #include "core/inspector/InstanceCounters.h" | 28 #include "core/inspector/InstanceCounters.h" |
| 29 #include "modules/webaudio/AbstractAudioContext.h" | 29 #include "modules/webaudio/AbstractAudioContext.h" |
| 30 #include "modules/webaudio/AudioNodeInput.h" | 30 #include "modules/webaudio/AudioNodeInput.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 "wtf/Atomics.h" | 33 #include "wtf/Atomics.h" |
| 34 #include "wtf/MainThread.h" | |
| 35 | 34 |
| 36 #if DEBUG_AUDIONODE_REFERENCES | 35 #if DEBUG_AUDIONODE_REFERENCES |
| 37 #include <stdio.h> | 36 #include <stdio.h> |
| 38 #endif | 37 #endif |
| 39 | 38 |
| 40 namespace blink { | 39 namespace blink { |
| 41 | 40 |
| 42 AudioHandler::AudioHandler(NodeType nodeType, AudioNode& node, float sampleRate) | 41 AudioHandler::AudioHandler(NodeType nodeType, AudioNode& node, float sampleRate) |
| 43 : m_isInitialized(false) | 42 : m_isInitialized(false) |
| 44 , m_nodeType(NodeTypeUnknown) | 43 , m_nodeType(NodeTypeUnknown) |
| (...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 934 void AudioNode::didAddOutput(unsigned numberOfOutputs) | 933 void AudioNode::didAddOutput(unsigned numberOfOutputs) |
| 935 { | 934 { |
| 936 m_connectedNodes.append(nullptr); | 935 m_connectedNodes.append(nullptr); |
| 937 ASSERT_UNUSED(numberOfOutputs, numberOfOutputs == m_connectedNodes.size()); | 936 ASSERT_UNUSED(numberOfOutputs, numberOfOutputs == m_connectedNodes.size()); |
| 938 m_connectedParams.append(nullptr); | 937 m_connectedParams.append(nullptr); |
| 939 ASSERT_UNUSED(numberOfOutputs, numberOfOutputs == m_connectedParams.size()); | 938 ASSERT_UNUSED(numberOfOutputs, numberOfOutputs == m_connectedParams.size()); |
| 940 } | 939 } |
| 941 | 940 |
| 942 } // namespace blink | 941 } // namespace blink |
| 943 | 942 |
| OLD | NEW |