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

Side by Side Diff: content/renderer/media/media_stream_audio_processor_options.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_OPTIONS_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_ 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/file.h" 10 #include "base/files/file.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 static void ApplyFixedAudioConstraints(RTCMediaConstraints* constraints); 52 static void ApplyFixedAudioConstraints(RTCMediaConstraints* constraints);
53 53
54 // |effects| is the bitmasks telling whether certain platform 54 // |effects| is the bitmasks telling whether certain platform
55 // hardware audio effects are enabled, like hardware echo cancellation. If 55 // hardware audio effects are enabled, like hardware echo cancellation. If
56 // some hardware effect is enabled, the corresponding software audio 56 // some hardware effect is enabled, the corresponding software audio
57 // processing will be disabled. 57 // processing will be disabled.
58 MediaAudioConstraints(const blink::WebMediaConstraints& constraints, 58 MediaAudioConstraints(const blink::WebMediaConstraints& constraints,
59 int effects); 59 int effects);
60 virtual ~MediaAudioConstraints(); 60 virtual ~MediaAudioConstraints();
61 61
62 // Checks if any audio constraints are set that requires audio processing to
63 // be applied.
64 bool NeedsAudioProcessing();
65
66 // Gets the property of the constraint named by |key| in |constraints_|. 62 // Gets the property of the constraint named by |key| in |constraints_|.
67 // Returns the constraint's value if the key is found; Otherwise returns the 63 // Returns the constraint's value if the key is found; Otherwise returns the
68 // default value of the constraint. 64 // default value of the constraint.
69 // Note, for constraint of |kEchoCancellation| or |kGoogEchoCancellation|, 65 // Note, for constraint of |kEchoCancellation| or |kGoogEchoCancellation|,
70 // clients should use GetEchoCancellationProperty(). 66 // clients should use GetEchoCancellationProperty().
71 bool GetProperty(const std::string& key); 67 bool GetProperty(const std::string& key);
72 68
73 // Gets the property of echo cancellation defined in |constraints_|. The 69 // Gets the property of echo cancellation defined in |constraints_|. The
74 // returned value depends on a combination of |effects_|, |kEchoCancellation| 70 // returned value depends on a combination of |effects_|, |kEchoCancellation|
75 // and |kGoogEchoCancellation| in |constraints_|. 71 // and |kGoogEchoCancellation| in |constraints_|.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 void StopEchoCancellationDump(AudioProcessing* audio_processing); 131 void StopEchoCancellationDump(AudioProcessing* audio_processing);
136 132
137 void EnableAutomaticGainControl(AudioProcessing* audio_processing); 133 void EnableAutomaticGainControl(AudioProcessing* audio_processing);
138 134
139 void GetAecStats(AudioProcessing* audio_processing, 135 void GetAecStats(AudioProcessing* audio_processing,
140 webrtc::AudioProcessorInterface::AudioProcessorStats* stats); 136 webrtc::AudioProcessorInterface::AudioProcessorStats* stats);
141 137
142 } // namespace content 138 } // namespace content
143 139
144 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_ 140 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_audio_processor.cc ('k') | content/renderer/media/media_stream_audio_processor_options.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698