| 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 18 matching lines...) Expand all Loading... |
| 29 #include "modules/webaudio/BaseAudioContext.h" | 29 #include "modules/webaudio/BaseAudioContext.h" |
| 30 | 30 |
| 31 namespace blink { | 31 namespace blink { |
| 32 | 32 |
| 33 DefaultAudioDestinationHandler::DefaultAudioDestinationHandler(AudioNode& node) | 33 DefaultAudioDestinationHandler::DefaultAudioDestinationHandler(AudioNode& node) |
| 34 : AudioDestinationHandler(node, AudioDestination::hardwareSampleRate()) | 34 : AudioDestinationHandler(node, AudioDestination::hardwareSampleRate()) |
| 35 , m_numberOfInputChannels(0) | 35 , m_numberOfInputChannels(0) |
| 36 { | 36 { |
| 37 // Node-specific default mixing rules. | 37 // Node-specific default mixing rules. |
| 38 m_channelCount = 2; | 38 m_channelCount = 2; |
| 39 setInternalChannelCountMode(Explicit); | 39 m_channelCountMode = Explicit; |
| 40 setInternalChannelInterpretation(AudioBus::Speakers); | 40 m_channelInterpretation = AudioBus::Speakers; |
| 41 } | 41 } |
| 42 | 42 |
| 43 PassRefPtr<DefaultAudioDestinationHandler> DefaultAudioDestinationHandler::creat
e(AudioNode& node) | 43 PassRefPtr<DefaultAudioDestinationHandler> DefaultAudioDestinationHandler::creat
e(AudioNode& node) |
| 44 { | 44 { |
| 45 return adoptRef(new DefaultAudioDestinationHandler(node)); | 45 return adoptRef(new DefaultAudioDestinationHandler(node)); |
| 46 } | 46 } |
| 47 | 47 |
| 48 DefaultAudioDestinationHandler::~DefaultAudioDestinationHandler() | 48 DefaultAudioDestinationHandler::~DefaultAudioDestinationHandler() |
| 49 { | 49 { |
| 50 DCHECK(!isInitialized()); | 50 DCHECK(!isInitialized()); |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 setHandler(DefaultAudioDestinationHandler::create(*this)); | 143 setHandler(DefaultAudioDestinationHandler::create(*this)); |
| 144 } | 144 } |
| 145 | 145 |
| 146 DefaultAudioDestinationNode* DefaultAudioDestinationNode::create(BaseAudioContex
t* context) | 146 DefaultAudioDestinationNode* DefaultAudioDestinationNode::create(BaseAudioContex
t* context) |
| 147 { | 147 { |
| 148 return new DefaultAudioDestinationNode(*context); | 148 return new DefaultAudioDestinationNode(*context); |
| 149 } | 149 } |
| 150 | 150 |
| 151 } // namespace blink | 151 } // namespace blink |
| 152 | 152 |
| OLD | NEW |