| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 void AudioNode::initialize() | 82 void AudioNode::initialize() |
| 83 { | 83 { |
| 84 m_isInitialized = true; | 84 m_isInitialized = true; |
| 85 } | 85 } |
| 86 | 86 |
| 87 void AudioNode::uninitialize() | 87 void AudioNode::uninitialize() |
| 88 { | 88 { |
| 89 m_isInitialized = false; | 89 m_isInitialized = false; |
| 90 } | 90 } |
| 91 | 91 |
| 92 void AudioNode::clearInternalState() |
| 93 { |
| 94 } |
| 95 |
| 92 void AudioNode::dispose() | 96 void AudioNode::dispose() |
| 93 { | 97 { |
| 94 ASSERT(isMainThread()); | 98 ASSERT(isMainThread()); |
| 95 ASSERT(context()->isGraphOwner()); | 99 ASSERT(context()->isGraphOwner()); |
| 96 | 100 |
| 97 context()->removeChangedChannelCountMode(this); | 101 context()->removeChangedChannelCountMode(this); |
| 98 context()->removeAutomaticPullNode(this); | 102 context()->removeAutomaticPullNode(this); |
| 99 context()->disposeOutputs(*this); | 103 context()->disposeOutputs(*this); |
| 100 for (unsigned i = 0; i < m_outputs.size(); ++i) | 104 for (unsigned i = 0; i < m_outputs.size(); ++i) |
| 101 output(i)->disconnectAll(); | 105 output(i)->disconnectAll(); |
| (...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 | 567 |
| 564 void AudioNode::updateChannelCountMode() | 568 void AudioNode::updateChannelCountMode() |
| 565 { | 569 { |
| 566 m_channelCountMode = m_newChannelCountMode; | 570 m_channelCountMode = m_newChannelCountMode; |
| 567 updateChannelsForInputs(); | 571 updateChannelsForInputs(); |
| 568 } | 572 } |
| 569 | 573 |
| 570 } // namespace blink | 574 } // namespace blink |
| 571 | 575 |
| 572 #endif // ENABLE(WEB_AUDIO) | 576 #endif // ENABLE(WEB_AUDIO) |
| OLD | NEW |