| 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 24 matching lines...) Expand all Loading... |
| 35 namespace blink { | 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 AudioNodeInput* AudioNodeInput::create(AudioNode& node) |
| 46 { | 46 { |
| 47 return adoptPtrWillBeNoop(new AudioNodeInput(node)); | 47 return new AudioNodeInput(node); |
| 48 } | 48 } |
| 49 | 49 |
| 50 void AudioNodeInput::trace(Visitor* visitor) | 50 void AudioNodeInput::trace(Visitor* visitor) |
| 51 { | 51 { |
| 52 visitor->trace(m_node); | 52 visitor->trace(m_node); |
| 53 AudioSummingJunction::trace(visitor); | 53 AudioSummingJunction::trace(visitor); |
| 54 } | 54 } |
| 55 | 55 |
| 56 void AudioNodeInput::connect(AudioNodeOutput& output) | 56 void AudioNodeInput::connect(AudioNodeOutput& output) |
| 57 { | 57 { |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 blink | 233 } // namespace blink |
| 234 | 234 |
| 235 #endif // ENABLE(WEB_AUDIO) | 235 #endif // ENABLE(WEB_AUDIO) |
| OLD | NEW |