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

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

Issue 334743006: Support multiple files for AEC dump. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase again... Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
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_AUDIO_CAPTURER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_CAPTURER_H_
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_CAPTURER_H_ 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_CAPTURER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // This function is triggered by provideInput() on the WebAudio audio thread, 110 // This function is triggered by provideInput() on the WebAudio audio thread,
111 // TODO(xians): Remove after moving APM from WebRtc to Chrome. 111 // TODO(xians): Remove after moving APM from WebRtc to Chrome.
112 void GetAudioProcessingParams(base::TimeDelta* delay, int* volume, 112 void GetAudioProcessingParams(base::TimeDelta* delay, int* volume,
113 bool* key_pressed); 113 bool* key_pressed);
114 114
115 // Used by the unittests to inject their own source to the capturer. 115 // Used by the unittests to inject their own source to the capturer.
116 void SetCapturerSourceForTesting( 116 void SetCapturerSourceForTesting(
117 const scoped_refptr<media::AudioCapturerSource>& source, 117 const scoped_refptr<media::AudioCapturerSource>& source,
118 media::AudioParameters params); 118 media::AudioParameters params);
119 119
120 void StartAecDump(base::File aec_dump_file);
121 void StopAecDump();
122
123 protected: 120 protected:
124 friend class base::RefCountedThreadSafe<WebRtcAudioCapturer>; 121 friend class base::RefCountedThreadSafe<WebRtcAudioCapturer>;
125 virtual ~WebRtcAudioCapturer(); 122 virtual ~WebRtcAudioCapturer();
126 123
127 private: 124 private:
128 class TrackOwner; 125 class TrackOwner;
129 typedef TaggedList<TrackOwner> TrackList; 126 typedef TaggedList<TrackOwner> TrackList;
130 127
131 WebRtcAudioCapturer(int render_view_id, 128 WebRtcAudioCapturer(int render_view_id,
132 const StreamDeviceInfo& device_info, 129 const StreamDeviceInfo& device_info,
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 222
226 // Records when the last time audio power level is logged. 223 // Records when the last time audio power level is logged.
227 base::TimeTicks last_audio_level_log_time_; 224 base::TimeTicks last_audio_level_log_time_;
228 225
229 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioCapturer); 226 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioCapturer);
230 }; 227 };
231 228
232 } // namespace content 229 } // namespace content
233 230
234 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_CAPTURER_H_ 231 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_CAPTURER_H_
OLDNEW
« no previous file with comments | « content/renderer/media/webrtc/peer_connection_dependency_factory.cc ('k') | content/renderer/media/webrtc_audio_capturer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698