| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 if (!exceptionState.hadException() && this->channelCount() != oldChannelCoun
t && isInitialized()) { | 134 if (!exceptionState.hadException() && this->channelCount() != oldChannelCoun
t && isInitialized()) { |
| 135 // Re-create destination. | 135 // Re-create destination. |
| 136 m_destination->stop(); | 136 m_destination->stop(); |
| 137 createDestination(); | 137 createDestination(); |
| 138 m_destination->start(); | 138 m_destination->start(); |
| 139 } | 139 } |
| 140 } | 140 } |
| 141 | 141 |
| 142 // ---------------------------------------------------------------- | 142 // ---------------------------------------------------------------- |
| 143 | 143 |
| 144 DefaultAudioDestinationNode::DefaultAudioDestinationNode(AudioContext& context) | 144 DefaultAudioDestinationNode::DefaultAudioDestinationNode(AbstractAudioContext& c
ontext) |
| 145 : AudioDestinationNode(context) | 145 : AudioDestinationNode(context) |
| 146 { | 146 { |
| 147 setHandler(DefaultAudioDestinationHandler::create(*this)); | 147 setHandler(DefaultAudioDestinationHandler::create(*this)); |
| 148 } | 148 } |
| 149 | 149 |
| 150 DefaultAudioDestinationNode* DefaultAudioDestinationNode::create(AudioContext* c
ontext) | 150 DefaultAudioDestinationNode* DefaultAudioDestinationNode::create(AbstractAudioCo
ntext* context) |
| 151 { | 151 { |
| 152 return new DefaultAudioDestinationNode(*context); | 152 return new DefaultAudioDestinationNode(*context); |
| 153 } | 153 } |
| 154 | 154 |
| 155 } // namespace blink | 155 } // namespace blink |
| 156 | 156 |
| 157 #endif // ENABLE(WEB_AUDIO) | 157 #endif // ENABLE(WEB_AUDIO) |
| OLD | NEW |