OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_RENDERER_MEDIA_WEBAUDIO_CAPTURER_SOURCE_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBAUDIO_CAPTURER_SOURCE_H_ |
6 #define CONTENT_RENDERER_MEDIA_WEBAUDIO_CAPTURER_SOURCE_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBAUDIO_CAPTURER_SOURCE_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/synchronization/lock.h" | 9 #include "base/synchronization/lock.h" |
10 #include "media/audio/audio_parameters.h" | 10 #include "media/audio/audio_parameters.h" |
11 #include "media/base/audio_capturer_source.h" | 11 #include "media/base/audio_capturer_source.h" |
12 #include "media/base/audio_fifo.h" | 12 #include "media/base/audio_fifo.h" |
13 #include "third_party/WebKit/Source/Platform/chromium/public/WebAudioDestination
Consumer.h" | 13 #include "third_party/WebKit/public/platform/WebAudioDestinationConsumer.h" |
14 #include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h" | 14 #include "third_party/WebKit/public/platform/WebVector.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 | 17 |
18 class WebRtcAudioCapturer; | 18 class WebRtcAudioCapturer; |
19 | 19 |
20 // WebAudioCapturerSource is the missing link between | 20 // WebAudioCapturerSource is the missing link between |
21 // WebAudio's MediaStreamAudioDestinationNode and WebRtcAudioCapturer. | 21 // WebAudio's MediaStreamAudioDestinationNode and WebRtcAudioCapturer. |
22 // | 22 // |
23 // 1. WebKit calls the setFormat() method setting up the basic stream format | 23 // 1. WebKit calls the setFormat() method setting up the basic stream format |
24 // (channels, and sample-rate). At this time, it dispatches this information | 24 // (channels, and sample-rate). At this time, it dispatches this information |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 // Synchronizes HandleCapture() with AudioCapturerSource calls. | 72 // Synchronizes HandleCapture() with AudioCapturerSource calls. |
73 base::Lock lock_; | 73 base::Lock lock_; |
74 bool started_; | 74 bool started_; |
75 | 75 |
76 DISALLOW_COPY_AND_ASSIGN(WebAudioCapturerSource); | 76 DISALLOW_COPY_AND_ASSIGN(WebAudioCapturerSource); |
77 }; | 77 }; |
78 | 78 |
79 } // namespace content | 79 } // namespace content |
80 | 80 |
81 #endif // CONTENT_RENDERER_MEDIA_WEBAUDIO_CAPTURER_SOURCE_H_ | 81 #endif // CONTENT_RENDERER_MEDIA_WEBAUDIO_CAPTURER_SOURCE_H_ |
OLD | NEW |