| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 m_renderingParamFanOutCount(0) { | 44 m_renderingParamFanOutCount(0) { |
| 45 DCHECK_LE(numberOfChannels, BaseAudioContext::maxNumberOfChannels()); | 45 DCHECK_LE(numberOfChannels, BaseAudioContext::maxNumberOfChannels()); |
| 46 | 46 |
| 47 m_internalBus = | 47 m_internalBus = |
| 48 AudioBus::create(numberOfChannels, AudioUtilities::kRenderQuantumFrames); | 48 AudioBus::create(numberOfChannels, AudioUtilities::kRenderQuantumFrames); |
| 49 } | 49 } |
| 50 | 50 |
| 51 std::unique_ptr<AudioNodeOutput> AudioNodeOutput::create( | 51 std::unique_ptr<AudioNodeOutput> AudioNodeOutput::create( |
| 52 AudioHandler* handler, | 52 AudioHandler* handler, |
| 53 unsigned numberOfChannels) { | 53 unsigned numberOfChannels) { |
| 54 return wrapUnique(new AudioNodeOutput(handler, numberOfChannels)); | 54 return WTF::wrapUnique(new AudioNodeOutput(handler, numberOfChannels)); |
| 55 } | 55 } |
| 56 | 56 |
| 57 void AudioNodeOutput::dispose() { | 57 void AudioNodeOutput::dispose() { |
| 58 m_didCallDispose = true; | 58 m_didCallDispose = true; |
| 59 | 59 |
| 60 deferredTaskHandler().removeMarkedAudioNodeOutput(this); | 60 deferredTaskHandler().removeMarkedAudioNodeOutput(this); |
| 61 disconnectAll(); | 61 disconnectAll(); |
| 62 DCHECK(m_inputs.isEmpty()); | 62 DCHECK(m_inputs.isEmpty()); |
| 63 DCHECK(m_params.isEmpty()); | 63 DCHECK(m_params.isEmpty()); |
| 64 } | 64 } |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 ASSERT(deferredTaskHandler().isGraphOwner()); | 238 ASSERT(deferredTaskHandler().isGraphOwner()); |
| 239 | 239 |
| 240 if (!m_isEnabled) { | 240 if (!m_isEnabled) { |
| 241 m_isEnabled = true; | 241 m_isEnabled = true; |
| 242 for (AudioNodeInput* i : m_inputs) | 242 for (AudioNodeInput* i : m_inputs) |
| 243 i->enable(*this); | 243 i->enable(*this); |
| 244 } | 244 } |
| 245 } | 245 } |
| 246 | 246 |
| 247 } // namespace blink | 247 } // namespace blink |
| OLD | NEW |