OLD | NEW |
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 Loading... |
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 |
OLD | NEW |