| 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_WEBRTC_PROCESSED_LOCAL_AUDIO_SOURCE_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_PROCESSED_LOCAL_AUDIO_SOURCE_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_PROCESSED_LOCAL_AUDIO_SOURCE_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_PROCESSED_LOCAL_AUDIO_SOURCE_H_ |
| 7 | 7 |
| 8 #include "base/atomicops.h" | 8 #include "base/atomicops.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/synchronization/lock.h" | 11 #include "base/synchronization/lock.h" |
| 12 #include "content/common/media/media_stream_options.h" | 12 #include "content/common/media/media_stream_options.h" |
| 13 #include "content/renderer/media/media_stream_audio_level_calculator.h" | 13 #include "content/renderer/media/media_stream_audio_level_calculator.h" |
| 14 #include "content/renderer/media/media_stream_audio_processor.h" | 14 #include "content/renderer/media/media_stream_audio_processor.h" |
| 15 #include "content/renderer/media/media_stream_audio_source.h" | 15 #include "content/renderer/media/media_stream_audio_source.h" |
| 16 #include "media/base/audio_capturer_source.h" | 16 #include "media/base/audio_capturer_source.h" |
| 17 #include "third_party/WebKit/public/platform/WebMediaConstraints.h" | 17 #include "third_party/WebKit/public/platform/WebMediaConstraints.h" |
| 18 | 18 |
| 19 namespace media { | 19 namespace media { |
| 20 class AudioBus; | 20 class AudioBus; |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace webrtc { | |
| 24 class AudioSourceInterface; | |
| 25 } | |
| 26 | |
| 27 namespace content { | 23 namespace content { |
| 28 | 24 |
| 29 class PeerConnectionDependencyFactory; | 25 class PeerConnectionDependencyFactory; |
| 30 | 26 |
| 31 // Represents a local source of audio data that is routed through the WebRTC | 27 // Represents a local source of audio data that is routed through the WebRTC |
| 32 // audio pipeline for post-processing (e.g., for echo cancellation during a | 28 // audio pipeline for post-processing (e.g., for echo cancellation during a |
| 33 // video conferencing call). Owns a media::AudioCapturerSource and the | 29 // video conferencing call). Owns a media::AudioCapturerSource and the |
| 34 // MediaStreamProcessor that modifies its audio. Modified audio is delivered to | 30 // MediaStreamProcessor that modifies its audio. Modified audio is delivered to |
| 35 // one or more MediaStreamAudioTracks. | 31 // one or more MediaStreamAudioTracks. |
| 36 class CONTENT_EXPORT ProcessedLocalAudioSource final | 32 class CONTENT_EXPORT ProcessedLocalAudioSource final |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 MediaStreamAudioLevelCalculator level_calculator_; | 130 MediaStreamAudioLevelCalculator level_calculator_; |
| 135 | 131 |
| 136 bool allow_invalid_render_frame_id_for_testing_; | 132 bool allow_invalid_render_frame_id_for_testing_; |
| 137 | 133 |
| 138 DISALLOW_COPY_AND_ASSIGN(ProcessedLocalAudioSource); | 134 DISALLOW_COPY_AND_ASSIGN(ProcessedLocalAudioSource); |
| 139 }; | 135 }; |
| 140 | 136 |
| 141 } // namespace content | 137 } // namespace content |
| 142 | 138 |
| 143 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_PROCESSED_LOCAL_AUDIO_SOURCE_H_ | 139 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_PROCESSED_LOCAL_AUDIO_SOURCE_H_ |
| OLD | NEW |