OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 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 18 matching lines...) Expand all Loading... |
29 #include "modules/webaudio/DynamicsCompressorNode.h" | 29 #include "modules/webaudio/DynamicsCompressorNode.h" |
30 | 30 |
31 #include "platform/audio/DynamicsCompressor.h" | 31 #include "platform/audio/DynamicsCompressor.h" |
32 #include "modules/webaudio/AudioContext.h" | 32 #include "modules/webaudio/AudioContext.h" |
33 #include "modules/webaudio/AudioNodeInput.h" | 33 #include "modules/webaudio/AudioNodeInput.h" |
34 #include "modules/webaudio/AudioNodeOutput.h" | 34 #include "modules/webaudio/AudioNodeOutput.h" |
35 | 35 |
36 // Set output to stereo by default. | 36 // Set output to stereo by default. |
37 static const unsigned defaultNumberOfOutputChannels = 2; | 37 static const unsigned defaultNumberOfOutputChannels = 2; |
38 | 38 |
39 namespace WebCore { | 39 namespace blink { |
40 | 40 |
41 DynamicsCompressorNode::DynamicsCompressorNode(AudioContext* context, float samp
leRate) | 41 DynamicsCompressorNode::DynamicsCompressorNode(AudioContext* context, float samp
leRate) |
42 : AudioNode(context, sampleRate) | 42 : AudioNode(context, sampleRate) |
43 { | 43 { |
44 ScriptWrappable::init(this); | 44 ScriptWrappable::init(this); |
45 addInput(); | 45 addInput(); |
46 addOutput(AudioNodeOutput::create(this, defaultNumberOfOutputChannels)); | 46 addOutput(AudioNodeOutput::create(this, defaultNumberOfOutputChannels)); |
47 | 47 |
48 setNodeType(NodeTypeDynamicsCompressor); | 48 setNodeType(NodeTypeDynamicsCompressor); |
49 | 49 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 { | 117 { |
118 visitor->trace(m_threshold); | 118 visitor->trace(m_threshold); |
119 visitor->trace(m_knee); | 119 visitor->trace(m_knee); |
120 visitor->trace(m_ratio); | 120 visitor->trace(m_ratio); |
121 visitor->trace(m_reduction); | 121 visitor->trace(m_reduction); |
122 visitor->trace(m_attack); | 122 visitor->trace(m_attack); |
123 visitor->trace(m_release); | 123 visitor->trace(m_release); |
124 AudioNode::trace(visitor); | 124 AudioNode::trace(visitor); |
125 } | 125 } |
126 | 126 |
127 } // namespace WebCore | 127 } // namespace blink |
128 | 128 |
129 #endif // ENABLE(WEB_AUDIO) | 129 #endif // ENABLE(WEB_AUDIO) |
OLD | NEW |