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 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1050 void AudioContext::processAutomaticPullNodes(size_t framesToProcess) | 1050 void AudioContext::processAutomaticPullNodes(size_t framesToProcess) |
1051 { | 1051 { |
1052 ASSERT(isAudioThread()); | 1052 ASSERT(isAudioThread()); |
1053 | 1053 |
1054 for (unsigned i = 0; i < m_renderingAutomaticPullNodes.size(); ++i) | 1054 for (unsigned i = 0; i < m_renderingAutomaticPullNodes.size(); ++i) |
1055 m_renderingAutomaticPullNodes[i]->processIfNecessary(framesToProcess); | 1055 m_renderingAutomaticPullNodes[i]->processIfNecessary(framesToProcess); |
1056 } | 1056 } |
1057 | 1057 |
1058 const AtomicString& AudioContext::interfaceName() const | 1058 const AtomicString& AudioContext::interfaceName() const |
1059 { | 1059 { |
1060 return eventNames().interfaceForAudioContext; | 1060 return EventTargetNames::AudioContext; |
1061 } | 1061 } |
1062 | 1062 |
1063 ExecutionContext* AudioContext::executionContext() const | 1063 ExecutionContext* AudioContext::executionContext() const |
1064 { | 1064 { |
1065 return m_isStopScheduled ? 0 : ActiveDOMObject::executionContext(); | 1065 return m_isStopScheduled ? 0 : ActiveDOMObject::executionContext(); |
1066 } | 1066 } |
1067 | 1067 |
1068 void AudioContext::startRendering() | 1068 void AudioContext::startRendering() |
1069 { | 1069 { |
1070 destination()->startRendering(); | 1070 destination()->startRendering(); |
(...skipping 24 matching lines...) Expand all Loading... |
1095 } | 1095 } |
1096 | 1096 |
1097 void AudioContext::decrementActiveSourceCount() | 1097 void AudioContext::decrementActiveSourceCount() |
1098 { | 1098 { |
1099 atomicDecrement(&m_activeSourceCount); | 1099 atomicDecrement(&m_activeSourceCount); |
1100 } | 1100 } |
1101 | 1101 |
1102 } // namespace WebCore | 1102 } // namespace WebCore |
1103 | 1103 |
1104 #endif // ENABLE(WEB_AUDIO) | 1104 #endif // ENABLE(WEB_AUDIO) |
OLD | NEW |