OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 // Wraps the given WebAudioSourceProvider. | 224 // Wraps the given WebAudioSourceProvider. |
225 void wrap(WebAudioSourceProvider*); | 225 void wrap(WebAudioSourceProvider*); |
226 | 226 |
227 // WebCore::AudioSourceProvider | 227 // WebCore::AudioSourceProvider |
228 virtual void setClient(WebCore::AudioSourceProviderClient*); | 228 virtual void setClient(WebCore::AudioSourceProviderClient*); |
229 virtual void provideInput(WebCore::AudioBus*, size_t framesToProcess); | 229 virtual void provideInput(WebCore::AudioBus*, size_t framesToProcess); |
230 | 230 |
231 private: | 231 private: |
232 WebAudioSourceProvider* m_webAudioSourceProvider; | 232 WebAudioSourceProvider* m_webAudioSourceProvider; |
233 OwnPtr<AudioClientImpl> m_client; | 233 OwnPtr<AudioClientImpl> m_client; |
| 234 Mutex provideInputLock; |
234 }; | 235 }; |
235 | 236 |
236 AudioSourceProviderImpl m_audioSourceProvider; | 237 AudioSourceProviderImpl m_audioSourceProvider; |
237 #endif | 238 #endif |
238 | 239 |
239 RefPtr<WebCore::MediaSource> m_mediaSource; | 240 RefPtr<WebCore::MediaSource> m_mediaSource; |
240 }; | 241 }; |
241 | 242 |
242 } // namespace WebKit | 243 } // namespace WebKit |
243 | 244 |
244 #endif | 245 #endif |
OLD | NEW |