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

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

Issue 671793004: Clean up the media stream audio track code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 years, 1 month 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"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 // This class owns an object of webrtc::AudioProcessing which contains signal 45 // This class owns an object of webrtc::AudioProcessing which contains signal
46 // processing components like AGC, AEC and NS. It enables the components based 46 // processing components like AGC, AEC and NS. It enables the components based
47 // on the getUserMedia constraints, processes the data and outputs it in a unit 47 // on the getUserMedia constraints, processes the data and outputs it in a unit
48 // of 10 ms data chunk. 48 // of 10 ms data chunk.
49 class CONTENT_EXPORT MediaStreamAudioProcessor : 49 class CONTENT_EXPORT MediaStreamAudioProcessor :
50 NON_EXPORTED_BASE(public WebRtcPlayoutDataSource::Sink), 50 NON_EXPORTED_BASE(public WebRtcPlayoutDataSource::Sink),
51 NON_EXPORTED_BASE(public AudioProcessorInterface), 51 NON_EXPORTED_BASE(public AudioProcessorInterface),
52 NON_EXPORTED_BASE(public AecDumpMessageFilter::AecDumpDelegate) { 52 NON_EXPORTED_BASE(public AecDumpMessageFilter::AecDumpDelegate) {
53 public: 53 public:
54 // Returns false if |kDisableAudioTrackProcessing| is set to true, otherwise
55 // returns true.
56 static bool IsAudioTrackProcessingEnabled();
57
58 // |playout_data_source| is used to register this class as a sink to the 54 // |playout_data_source| is used to register this class as a sink to the
59 // WebRtc playout data for processing AEC. If clients do not enable AEC, 55 // WebRtc playout data for processing AEC. If clients do not enable AEC,
60 // |playout_data_source| won't be used. 56 // |playout_data_source| won't be used.
61 MediaStreamAudioProcessor(const blink::WebMediaConstraints& constraints, 57 MediaStreamAudioProcessor(const blink::WebMediaConstraints& constraints,
62 int effects, 58 int effects,
63 WebRtcPlayoutDataSource* playout_data_source); 59 WebRtcPlayoutDataSource* playout_data_source);
64 60
65 // Called when the format of the capture data has changed. 61 // Called when the format of the capture data has changed.
66 // Called on the main render thread. The caller is responsible for stopping 62 // Called on the main render thread. The caller is responsible for stopping
67 // the capture thread before calling this method. 63 // the capture thread before calling this method.
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 // Object for logging echo information when the AEC is enabled. Accessible by 202 // Object for logging echo information when the AEC is enabled. Accessible by
207 // the libjingle thread through GetStats(). 203 // the libjingle thread through GetStats().
208 scoped_ptr<EchoInformation> echo_information_; 204 scoped_ptr<EchoInformation> echo_information_;
209 205
210 DISALLOW_COPY_AND_ASSIGN(MediaStreamAudioProcessor); 206 DISALLOW_COPY_AND_ASSIGN(MediaStreamAudioProcessor);
211 }; 207 };
212 208
213 } // namespace content 209 } // namespace content
214 210
215 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_ 211 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_
OLDNEW
« no previous file with comments | « content/public/common/content_switches.cc ('k') | content/renderer/media/media_stream_audio_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698