Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: content/renderer/media/media_stream_audio_processor.h

Issue 1357013006: Add detection for repeated audio in capturing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing dll Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_MEDIA_STREAM_AUDIO_PROCESSOR_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_ 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_
7 7
8 #include "base/atomicops.h" 8 #include "base/atomicops.h"
9 #include "base/files/file.h" 9 #include "base/files/file.h"
10 #include "base/synchronization/lock.h" 10 #include "base/synchronization/lock.h"
11 #include "base/threading/thread_checker.h" 11 #include "base/threading/thread_checker.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "content/public/common/media_stream_request.h" 14 #include "content/public/common/media_stream_request.h"
15 #include "content/renderer/media/aec_dump_message_filter.h" 15 #include "content/renderer/media/aec_dump_message_filter.h"
16 #include "content/renderer/media/repetition_detector.h"
16 #include "content/renderer/media/webrtc_audio_device_impl.h" 17 #include "content/renderer/media/webrtc_audio_device_impl.h"
17 #include "media/base/audio_converter.h" 18 #include "media/base/audio_converter.h"
18 #include "third_party/libjingle/source/talk/app/webrtc/mediastreaminterface.h" 19 #include "third_party/libjingle/source/talk/app/webrtc/mediastreaminterface.h"
19 #include "third_party/webrtc/modules/audio_processing/include/audio_processing.h " 20 #include "third_party/webrtc/modules/audio_processing/include/audio_processing.h "
20 21
21 namespace blink { 22 namespace blink {
22 class WebMediaConstraints; 23 class WebMediaConstraints;
23 } 24 }
24 25
25 namespace media { 26 namespace media {
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 int process_frames, 146 int process_frames,
146 base::TimeDelta capture_delay, 147 base::TimeDelta capture_delay,
147 int volume, 148 int volume,
148 bool key_pressed, 149 bool key_pressed,
149 float* const* output_ptrs); 150 float* const* output_ptrs);
150 151
151 // Cached value for the render delay latency. This member is accessed by 152 // Cached value for the render delay latency. This member is accessed by
152 // both the capture audio thread and the render audio thread. 153 // both the capture audio thread and the render audio thread.
153 base::subtle::Atomic32 render_delay_ms_; 154 base::subtle::Atomic32 render_delay_ms_;
154 155
156 // Module to detect and report (to UMA) bit exact audio repetition.
157 scoped_ptr<RepetitionDetector> repetition_detector_;
158
155 // Module to handle processing and format conversion. 159 // Module to handle processing and format conversion.
156 scoped_ptr<webrtc::AudioProcessing> audio_processing_; 160 scoped_ptr<webrtc::AudioProcessing> audio_processing_;
157 161
158 // FIFO to provide 10 ms capture chunks. 162 // FIFO to provide 10 ms capture chunks.
159 scoped_ptr<MediaStreamAudioFifo> capture_fifo_; 163 scoped_ptr<MediaStreamAudioFifo> capture_fifo_;
160 // Receives processing output. 164 // Receives processing output.
161 scoped_ptr<MediaStreamAudioBus> output_bus_; 165 scoped_ptr<MediaStreamAudioBus> output_bus_;
162 166
163 // FIFO to provide 10 ms render chunks when the AEC is enabled. 167 // FIFO to provide 10 ms render chunks when the AEC is enabled.
164 scoped_ptr<MediaStreamAudioFifo> render_fifo_; 168 scoped_ptr<MediaStreamAudioFifo> render_fifo_;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // Object for logging echo information when the AEC is enabled. Accessible by 204 // Object for logging echo information when the AEC is enabled. Accessible by
201 // the libjingle thread through GetStats(). 205 // the libjingle thread through GetStats().
202 scoped_ptr<EchoInformation> echo_information_; 206 scoped_ptr<EchoInformation> echo_information_;
203 207
204 DISALLOW_COPY_AND_ASSIGN(MediaStreamAudioProcessor); 208 DISALLOW_COPY_AND_ASSIGN(MediaStreamAudioProcessor);
205 }; 209 };
206 210
207 } // namespace content 211 } // namespace content
208 212
209 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_ 213 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698