| 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 11 matching lines...) Expand all Loading... |
| 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH | 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH |
| 23 * DAMAGE. | 23 * DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "modules/webaudio/AudioDestinationNode.h" | 26 #include "modules/webaudio/AudioDestinationNode.h" |
| 27 #include "modules/webaudio/AudioNodeInput.h" | 27 #include "modules/webaudio/AudioNodeInput.h" |
| 28 #include "modules/webaudio/AudioNodeOutput.h" | 28 #include "modules/webaudio/AudioNodeOutput.h" |
| 29 #include "modules/webaudio/BaseAudioContext.h" | 29 #include "modules/webaudio/BaseAudioContext.h" |
| 30 #include "platform/audio/AudioUtilities.h" | 30 #include "platform/audio/AudioUtilities.h" |
| 31 #include "platform/audio/DenormalDisabler.h" | 31 #include "platform/audio/DenormalDisabler.h" |
| 32 #include "wtf/Atomics.h" | 32 #include "platform/wtf/Atomics.h" |
| 33 | 33 |
| 34 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 AudioDestinationHandler::AudioDestinationHandler(AudioNode& node) | 36 AudioDestinationHandler::AudioDestinationHandler(AudioNode& node) |
| 37 : AudioHandler(kNodeTypeDestination, node, 0), current_sample_frame_(0) { | 37 : AudioHandler(kNodeTypeDestination, node, 0), current_sample_frame_(0) { |
| 38 AddInput(); | 38 AddInput(); |
| 39 } | 39 } |
| 40 | 40 |
| 41 AudioDestinationHandler::~AudioDestinationHandler() { | 41 AudioDestinationHandler::~AudioDestinationHandler() { |
| 42 DCHECK(!IsInitialized()); | 42 DCHECK(!IsInitialized()); |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 AudioDestinationHandler& AudioDestinationNode::GetAudioDestinationHandler() | 117 AudioDestinationHandler& AudioDestinationNode::GetAudioDestinationHandler() |
| 118 const { | 118 const { |
| 119 return static_cast<AudioDestinationHandler&>(Handler()); | 119 return static_cast<AudioDestinationHandler&>(Handler()); |
| 120 } | 120 } |
| 121 | 121 |
| 122 unsigned long AudioDestinationNode::maxChannelCount() const { | 122 unsigned long AudioDestinationNode::maxChannelCount() const { |
| 123 return GetAudioDestinationHandler().MaxChannelCount(); | 123 return GetAudioDestinationHandler().MaxChannelCount(); |
| 124 } | 124 } |
| 125 | 125 |
| 126 } // namespace blink | 126 } // namespace blink |
| OLD | NEW |