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

Side by Side Diff: content/renderer/media/local_media_stream_audio_source.cc

Issue 2919793002: Detect AudioInputStream muting and propagate to MediaStreamAudioSource. (Closed)
Patch Set: Reworked test again, to make tsan2 happy. Created 3 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "content/renderer/media/local_media_stream_audio_source.h" 5 #include "content/renderer/media/local_media_stream_audio_source.h"
6 6
7 #include "content/common/media/media_stream_options.h" 7 #include "content/common/media/media_stream_options.h"
8 #include "content/renderer/media/audio_device_factory.h" 8 #include "content/renderer/media/audio_device_factory.h"
9 #include "content/renderer/media/webrtc_logging.h" 9 #include "content/renderer/media/webrtc_logging.h"
10 #include "content/renderer/render_frame_impl.h" 10 #include "content/renderer/render_frame_impl.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 *audio_bus, 103 *audio_bus,
104 base::TimeTicks::Now() - 104 base::TimeTicks::Now() -
105 base::TimeDelta::FromMilliseconds(audio_delay_milliseconds)); 105 base::TimeDelta::FromMilliseconds(audio_delay_milliseconds));
106 } 106 }
107 107
108 void LocalMediaStreamAudioSource::OnCaptureError(const std::string& why) { 108 void LocalMediaStreamAudioSource::OnCaptureError(const std::string& why) {
109 WebRtcLogMessage("LocalMediaStreamAudioSource::OnCaptureError: " + why); 109 WebRtcLogMessage("LocalMediaStreamAudioSource::OnCaptureError: " + why);
110 StopSourceOnError(why); 110 StopSourceOnError(why);
111 } 111 }
112 112
113 void LocalMediaStreamAudioSource::OnCaptureMuted(bool is_muted) {
114 SetMutedState(is_muted);
115 }
116
113 } // namespace content 117 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/local_media_stream_audio_source.h ('k') | content/renderer/media/media_stream_audio_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698