| 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 10 matching lines...) Expand all Loading... |
| 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 23 */ | 23 */ |
| 24 | 24 |
| 25 #include "modules/webaudio/DefaultAudioDestinationNode.h" | 25 #include "modules/webaudio/DefaultAudioDestinationNode.h" |
| 26 #include "bindings/core/v8/ExceptionMessages.h" | 26 #include "bindings/core/v8/ExceptionMessages.h" |
| 27 #include "bindings/core/v8/ExceptionState.h" | 27 #include "bindings/core/v8/ExceptionState.h" |
| 28 #include "core/dom/ExceptionCode.h" | 28 #include "core/dom/ExceptionCode.h" |
| 29 #include "modules/webaudio/AbstractAudioContext.h" | 29 #include "modules/webaudio/AbstractAudioContext.h" |
| 30 #include "platform/Logging.h" | 30 #include "platform/Logging.h" |
| 31 #include "wtf/MainThread.h" | |
| 32 | 31 |
| 33 namespace blink { | 32 namespace blink { |
| 34 | 33 |
| 35 DefaultAudioDestinationHandler::DefaultAudioDestinationHandler(AudioNode& node) | 34 DefaultAudioDestinationHandler::DefaultAudioDestinationHandler(AudioNode& node) |
| 36 : AudioDestinationHandler(node, AudioDestination::hardwareSampleRate()) | 35 : AudioDestinationHandler(node, AudioDestination::hardwareSampleRate()) |
| 37 , m_numberOfInputChannels(0) | 36 , m_numberOfInputChannels(0) |
| 38 { | 37 { |
| 39 // Node-specific default mixing rules. | 38 // Node-specific default mixing rules. |
| 40 m_channelCount = 2; | 39 m_channelCount = 2; |
| 41 m_channelCountMode = Explicit; | 40 m_channelCountMode = Explicit; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 setHandler(DefaultAudioDestinationHandler::create(*this)); | 144 setHandler(DefaultAudioDestinationHandler::create(*this)); |
| 146 } | 145 } |
| 147 | 146 |
| 148 DefaultAudioDestinationNode* DefaultAudioDestinationNode::create(AbstractAudioCo
ntext* context) | 147 DefaultAudioDestinationNode* DefaultAudioDestinationNode::create(AbstractAudioCo
ntext* context) |
| 149 { | 148 { |
| 150 return new DefaultAudioDestinationNode(*context); | 149 return new DefaultAudioDestinationNode(*context); |
| 151 } | 150 } |
| 152 | 151 |
| 153 } // namespace blink | 152 } // namespace blink |
| 154 | 153 |
| OLD | NEW |