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

Side by Side Diff: content/renderer/media/webrtc/processed_local_audio_source.h

Issue 2645613005: MediaStreamTrack: Add echo-cancellation and device-id to getSettings (Closed)
Patch Set: Created 3 years, 11 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 (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"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // Thread-safe volume accessors used by WebRtcAudioDeviceImpl. 74 // Thread-safe volume accessors used by WebRtcAudioDeviceImpl.
75 void SetVolume(int volume); 75 void SetVolume(int volume);
76 int Volume() const; 76 int Volume() const;
77 int MaxVolume() const; 77 int MaxVolume() const;
78 78
79 // Audio parameters utilized by the source of the audio capturer. 79 // Audio parameters utilized by the source of the audio capturer.
80 // TODO(phoglund): Think over the implications of this accessor and if we can 80 // TODO(phoglund): Think over the implications of this accessor and if we can
81 // remove it. 81 // remove it.
82 media::AudioParameters GetInputFormat() const; 82 media::AudioParameters GetInputFormat() const;
83 83
84 void getSettings(blink::WebMediaStreamTrack::Settings&) override;
85
84 protected: 86 protected:
85 // MediaStreamAudioSource implementation. 87 // MediaStreamAudioSource implementation.
86 void* GetClassIdentifier() const final; 88 void* GetClassIdentifier() const final;
87 bool EnsureSourceIsStarted() final; 89 bool EnsureSourceIsStarted() final;
88 void EnsureSourceIsStopped() final; 90 void EnsureSourceIsStopped() final;
89 91
90 // AudioCapturerSource::CaptureCallback implementation. 92 // AudioCapturerSource::CaptureCallback implementation.
91 // Called on the AudioCapturerSource audio thread. 93 // Called on the AudioCapturerSource audio thread.
92 void OnCaptureStarted() override; 94 void OnCaptureStarted() override;
93 void Capture(const media::AudioBus* audio_source, 95 void Capture(const media::AudioBus* audio_source,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 MediaStreamAudioLevelCalculator level_calculator_; 137 MediaStreamAudioLevelCalculator level_calculator_;
136 138
137 bool allow_invalid_render_frame_id_for_testing_; 139 bool allow_invalid_render_frame_id_for_testing_;
138 140
139 DISALLOW_COPY_AND_ASSIGN(ProcessedLocalAudioSource); 141 DISALLOW_COPY_AND_ASSIGN(ProcessedLocalAudioSource);
140 }; 142 };
141 143
142 } // namespace content 144 } // namespace content
143 145
144 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_PROCESSED_LOCAL_AUDIO_SOURCE_H_ 146 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_PROCESSED_LOCAL_AUDIO_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698