| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 , m_lastNonSilentTime(-1) | 55 , m_lastNonSilentTime(-1) |
| 56 , m_normalRefCount(1) // start out with normal refCount == 1 (like WTF::RefC
ounted class) | 56 , m_normalRefCount(1) // start out with normal refCount == 1 (like WTF::RefC
ounted class) |
| 57 , m_connectionRefCount(0) | 57 , m_connectionRefCount(0) |
| 58 , m_isMarkedForDeletion(false) | 58 , m_isMarkedForDeletion(false) |
| 59 , m_isDisabled(false) | 59 , m_isDisabled(false) |
| 60 , m_channelCount(2) | 60 , m_channelCount(2) |
| 61 , m_channelCountMode(Max) | 61 , m_channelCountMode(Max) |
| 62 , m_channelInterpretation(AudioBus::Speakers) | 62 , m_channelInterpretation(AudioBus::Speakers) |
| 63 { | 63 { |
| 64 ScriptWrappable::init(this); | 64 ScriptWrappable::init(this); |
| 65 context->lazyInitialize(); | |
| 66 #if DEBUG_AUDIONODE_REFERENCES | 65 #if DEBUG_AUDIONODE_REFERENCES |
| 67 if (!s_isNodeCountInitialized) { | 66 if (!s_isNodeCountInitialized) { |
| 68 s_isNodeCountInitialized = true; | 67 s_isNodeCountInitialized = true; |
| 69 atexit(AudioNode::printNodeCounts); | 68 atexit(AudioNode::printNodeCounts); |
| 70 } | 69 } |
| 71 #endif | 70 #endif |
| 72 } | 71 } |
| 73 | 72 |
| 74 AudioNode::~AudioNode() | 73 AudioNode::~AudioNode() |
| 75 { | 74 { |
| (...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 // it cannot be reattached. Therefore, the reference count | 602 // it cannot be reattached. Therefore, the reference count |
| 604 // will not go above zero again. | 603 // will not go above zero again. |
| 605 ASSERT(m_keepAlive); | 604 ASSERT(m_keepAlive); |
| 606 m_keepAlive = nullptr; | 605 m_keepAlive = nullptr; |
| 607 } | 606 } |
| 608 #endif | 607 #endif |
| 609 | 608 |
| 610 } // namespace WebCore | 609 } // namespace WebCore |
| 611 | 610 |
| 612 #endif // ENABLE(WEB_AUDIO) | 611 #endif // ENABLE(WEB_AUDIO) |
| OLD | NEW |