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 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 { | 49 { |
50 ScriptWrappable::init(this); | 50 ScriptWrappable::init(this); |
51 } | 51 } |
52 | 52 |
53 AudioListener::~AudioListener() | 53 AudioListener::~AudioListener() |
54 { | 54 { |
55 } | 55 } |
56 | 56 |
57 void AudioListener::trace(Visitor* visitor) | 57 void AudioListener::trace(Visitor* visitor) |
58 { | 58 { |
59 #if ENABLE(OILPAN) | |
60 visitor->trace(m_panners); | 59 visitor->trace(m_panners); |
61 #endif | |
62 } | 60 } |
63 | 61 |
64 void AudioListener::addPanner(PannerNode* panner) | 62 void AudioListener::addPanner(PannerNode* panner) |
65 { | 63 { |
66 ASSERT(isMainThread()); | 64 ASSERT(isMainThread()); |
67 if (!panner) | 65 if (!panner) |
68 return; | 66 return; |
69 | 67 |
70 m_panners.append(panner); | 68 m_panners.append(panner); |
71 } | 69 } |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 163 |
166 // This synchronizes with panner's process(). | 164 // This synchronizes with panner's process(). |
167 MutexLocker listenerLocker(m_listenerLock); | 165 MutexLocker listenerLocker(m_listenerLock); |
168 m_speedOfSound = speedOfSound; | 166 m_speedOfSound = speedOfSound; |
169 markPannersAsDirty(PannerNode::DopplerRateDirty); | 167 markPannersAsDirty(PannerNode::DopplerRateDirty); |
170 } | 168 } |
171 | 169 |
172 } // namespace blink | 170 } // namespace blink |
173 | 171 |
174 #endif // ENABLE(WEB_AUDIO) | 172 #endif // ENABLE(WEB_AUDIO) |
OLD | NEW |