| 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 #include "config.h" | 25 #include "config.h" |
| 26 | 26 |
| 27 #if ENABLE(WEB_AUDIO) | 27 #if ENABLE(WEB_AUDIO) |
| 28 | 28 |
| 29 #include "modules/webaudio/AudioNodeInput.h" | 29 #include "modules/webaudio/AudioNodeInput.h" |
| 30 | 30 |
| 31 #include "modules/webaudio/AudioContext.h" | 31 #include "modules/webaudio/AudioContext.h" |
| 32 #include "modules/webaudio/AudioNodeOutput.h" | 32 #include "modules/webaudio/AudioNodeOutput.h" |
| 33 #include <algorithm> | 33 #include <algorithm> |
| 34 | 34 |
| 35 namespace WebCore { | 35 namespace blink { |
| 36 | 36 |
| 37 inline AudioNodeInput::AudioNodeInput(AudioNode& node) | 37 inline AudioNodeInput::AudioNodeInput(AudioNode& node) |
| 38 : AudioSummingJunction(node.context()) | 38 : AudioSummingJunction(node.context()) |
| 39 , m_node(node) | 39 , m_node(node) |
| 40 { | 40 { |
| 41 // Set to mono by default. | 41 // Set to mono by default. |
| 42 m_internalSummingBus = AudioBus::create(1, AudioNode::ProcessingSizeInFrames
); | 42 m_internalSummingBus = AudioBus::create(1, AudioNode::ProcessingSizeInFrames
); |
| 43 } | 43 } |
| 44 | 44 |
| 45 PassOwnPtrWillBeRawPtr<AudioNodeInput> AudioNodeInput::create(AudioNode& node) | 45 PassOwnPtrWillBeRawPtr<AudioNodeInput> AudioNodeInput::create(AudioNode& node) |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 internalSummingBus->zero(); | 223 internalSummingBus->zero(); |
| 224 return internalSummingBus; | 224 return internalSummingBus; |
| 225 } | 225 } |
| 226 | 226 |
| 227 // Handle multiple connections case. | 227 // Handle multiple connections case. |
| 228 sumAllConnections(internalSummingBus, framesToProcess); | 228 sumAllConnections(internalSummingBus, framesToProcess); |
| 229 | 229 |
| 230 return internalSummingBus; | 230 return internalSummingBus; |
| 231 } | 231 } |
| 232 | 232 |
| 233 } // namespace WebCore | 233 } // namespace blink |
| 234 | 234 |
| 235 #endif // ENABLE(WEB_AUDIO) | 235 #endif // ENABLE(WEB_AUDIO) |
| OLD | NEW |