| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 , m_context(context) | 51 , m_context(context) |
| 52 , m_sampleRate(sampleRate) | 52 , m_sampleRate(sampleRate) |
| 53 , m_lastProcessingTime(-1) | 53 , m_lastProcessingTime(-1) |
| 54 , m_lastNonSilentTime(-1) | 54 , m_lastNonSilentTime(-1) |
| 55 , m_connectionRefCount(0) | 55 , m_connectionRefCount(0) |
| 56 , m_isDisabled(false) | 56 , m_isDisabled(false) |
| 57 , m_channelCount(2) | 57 , m_channelCount(2) |
| 58 , m_channelCountMode(Max) | 58 , m_channelCountMode(Max) |
| 59 , m_channelInterpretation(AudioBus::Speakers) | 59 , m_channelInterpretation(AudioBus::Speakers) |
| 60 { | 60 { |
| 61 ScriptWrappable::init(this); | |
| 62 m_context->registerLiveNode(*this); | 61 m_context->registerLiveNode(*this); |
| 63 #if DEBUG_AUDIONODE_REFERENCES | 62 #if DEBUG_AUDIONODE_REFERENCES |
| 64 if (!s_isNodeCountInitialized) { | 63 if (!s_isNodeCountInitialized) { |
| 65 s_isNodeCountInitialized = true; | 64 s_isNodeCountInitialized = true; |
| 66 atexit(AudioNode::printNodeCounts); | 65 atexit(AudioNode::printNodeCounts); |
| 67 } | 66 } |
| 68 #endif | 67 #endif |
| 69 ++s_instanceCount; | 68 ++s_instanceCount; |
| 70 } | 69 } |
| 71 | 70 |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 { | 546 { |
| 548 visitor->trace(m_context); | 547 visitor->trace(m_context); |
| 549 visitor->trace(m_inputs); | 548 visitor->trace(m_inputs); |
| 550 visitor->trace(m_outputs); | 549 visitor->trace(m_outputs); |
| 551 EventTargetWithInlineData::trace(visitor); | 550 EventTargetWithInlineData::trace(visitor); |
| 552 } | 551 } |
| 553 | 552 |
| 554 } // namespace blink | 553 } // namespace blink |
| 555 | 554 |
| 556 #endif // ENABLE(WEB_AUDIO) | 555 #endif // ENABLE(WEB_AUDIO) |
| OLD | NEW |