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

Side by Side Diff: content/renderer/media/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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/media_stream_audio_source.h" 5 #include "content/renderer/media/media_stream_audio_source.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/single_thread_task_runner.h" 8 #include "base/single_thread_task_runner.h"
9 #include "base/threading/thread_task_runner_handle.h" 9 #include "base/threading/thread_task_runner_handle.h"
10 #include "content/renderer/media/media_stream_audio_track.h" 10 #include "content/renderer/media/media_stream_audio_track.h"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 } 140 }
141 141
142 void MediaStreamAudioSource::StopSourceOnError(const std::string& why) { 142 void MediaStreamAudioSource::StopSourceOnError(const std::string& why) {
143 VLOG(1) << why; 143 VLOG(1) << why;
144 144
145 // Stop source when error occurs. 145 // Stop source when error occurs.
146 task_runner_->PostTask( 146 task_runner_->PostTask(
147 FROM_HERE, base::Bind(&MediaStreamSource::StopSource, GetWeakPtr())); 147 FROM_HERE, base::Bind(&MediaStreamSource::StopSource, GetWeakPtr()));
148 } 148 }
149 149
150 void MediaStreamAudioSource::SetMutedState(bool muted_state) {
151 // TODO(ossu): Propagate this muted state into blink.
152 DVLOG(3) << "MediaStreamAudioSource::SetMutedState state=" << muted_state
153 << " (not implemented)";
154 }
155
150 } // namespace content 156 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_audio_source.h ('k') | content/renderer/media/media_stream_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698