| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Ericsson AB. All rights reserved. | 2 * Copyright (C) 2011 Ericsson AB. All rights reserved. |
| 3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 */ | 30 */ |
| 31 | 31 |
| 32 #include "config.h" | 32 #include "config.h" |
| 33 | 33 |
| 34 #include "core/platform/mediastream/MediaStreamComponent.h" | 34 #include "core/platform/mediastream/MediaStreamComponent.h" |
| 35 | 35 |
| 36 #include "platform/audio/AudioBus.h" | 36 #include "platform/audio/AudioBus.h" |
| 37 #include "core/platform/mediastream/MediaStreamSource.h" | |
| 38 #include "platform/UUID.h" | 37 #include "platform/UUID.h" |
| 38 #include "platform/mediastream/MediaStreamSource.h" |
| 39 #include "public/platform/WebAudioSourceProvider.h" | 39 #include "public/platform/WebAudioSourceProvider.h" |
| 40 | 40 |
| 41 namespace WebCore { | 41 namespace WebCore { |
| 42 | 42 |
| 43 PassRefPtr<MediaStreamComponent> MediaStreamComponent::create(PassRefPtr<MediaSt
reamSource> source) | 43 PassRefPtr<MediaStreamComponent> MediaStreamComponent::create(PassRefPtr<MediaSt
reamSource> source) |
| 44 { | 44 { |
| 45 return adoptRef(new MediaStreamComponent(createCanonicalUUIDString(), 0, sou
rce)); | 45 return adoptRef(new MediaStreamComponent(createCanonicalUUIDString(), 0, sou
rce)); |
| 46 } | 46 } |
| 47 | 47 |
| 48 PassRefPtr<MediaStreamComponent> MediaStreamComponent::create(const String& id,
PassRefPtr<MediaStreamSource> source) | 48 PassRefPtr<MediaStreamComponent> MediaStreamComponent::create(const String& id,
PassRefPtr<MediaStreamSource> source) |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 blink::WebVector<float*> webAudioData(n); | 88 blink::WebVector<float*> webAudioData(n); |
| 89 for (size_t i = 0; i < n; ++i) | 89 for (size_t i = 0; i < n; ++i) |
| 90 webAudioData[i] = bus->channel(i)->mutableData(); | 90 webAudioData[i] = bus->channel(i)->mutableData(); |
| 91 | 91 |
| 92 m_webAudioSourceProvider->provideInput(webAudioData, framesToProcess); | 92 m_webAudioSourceProvider->provideInput(webAudioData, framesToProcess); |
| 93 } | 93 } |
| 94 #endif // #if ENABLE(WEB_AUDIO) | 94 #endif // #if ENABLE(WEB_AUDIO) |
| 95 | 95 |
| 96 } // namespace WebCore | 96 } // namespace WebCore |
| 97 | 97 |
| OLD | NEW |