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

Side by Side Diff: content/renderer/media/external_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/external_media_stream_audio_source.h" 5 #include "content/renderer/media/external_media_stream_audio_source.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 ExternalMediaStreamAudioSource::ExternalMediaStreamAudioSource( 9 ExternalMediaStreamAudioSource::ExternalMediaStreamAudioSource(
10 scoped_refptr<media::AudioCapturerSource> source, 10 scoped_refptr<media::AudioCapturerSource> source,
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 MediaStreamAudioSource::DeliverDataToTracks( 69 MediaStreamAudioSource::DeliverDataToTracks(
70 *audio_bus, 70 *audio_bus,
71 base::TimeTicks::Now() - 71 base::TimeTicks::Now() -
72 base::TimeDelta::FromMilliseconds(audio_delay_milliseconds)); 72 base::TimeDelta::FromMilliseconds(audio_delay_milliseconds));
73 } 73 }
74 74
75 void ExternalMediaStreamAudioSource::OnCaptureError(const std::string& why) { 75 void ExternalMediaStreamAudioSource::OnCaptureError(const std::string& why) {
76 StopSourceOnError(why); 76 StopSourceOnError(why);
77 } 77 }
78 78
79 void ExternalMediaStreamAudioSource::OnCaptureMuted(bool is_muted) {
80 SetMutedState(is_muted);
81 }
82
79 } // namespace content 83 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/external_media_stream_audio_source.h ('k') | content/renderer/media/local_media_stream_audio_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698