| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012, Google Inc. All rights reserved. | 2 * Copyright (C) 2012, 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 // a format change, so we output silence in this case. | 106 // a format change, so we output silence in this case. |
| 107 MutexTryLocker tryLocker(m_processLock); | 107 MutexTryLocker tryLocker(m_processLock); |
| 108 if (tryLocker.locked()) | 108 if (tryLocker.locked()) |
| 109 audioSourceProvider()->provideInput(outputBus, numberOfFrames); | 109 audioSourceProvider()->provideInput(outputBus, numberOfFrames); |
| 110 else { | 110 else { |
| 111 // We failed to acquire the lock. | 111 // We failed to acquire the lock. |
| 112 outputBus->zero(); | 112 outputBus->zero(); |
| 113 } | 113 } |
| 114 } | 114 } |
| 115 | 115 |
| 116 void MediaStreamAudioSourceNode::trace(Visitor* visitor) |
| 117 { |
| 118 visitor->trace(m_mediaStream); |
| 119 visitor->trace(m_audioTrack); |
| 120 AudioSourceNode::trace(visitor); |
| 121 AudioSourceProviderClient::trace(visitor); |
| 122 } |
| 123 |
| 116 } // namespace WebCore | 124 } // namespace WebCore |
| 117 | 125 |
| 118 #endif // ENABLE(WEB_AUDIO) | 126 #endif // ENABLE(WEB_AUDIO) |
| OLD | NEW |