| OLD | NEW |
| 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_track.h" | 5 #include "content/renderer/media/media_stream_audio_track.h" |
| 6 | 6 |
| 7 #include "base/callback_helpers.h" | 7 #include "base/callback_helpers.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "content/public/renderer/media_stream_audio_sink.h" | 9 #include "content/public/renderer/media_stream_audio_sink.h" |
| 10 #include "media/base/audio_bus.h" | 10 #include "media/base/audio_bus.h" |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 silent_bus_ = media::AudioBus::Create(audio_bus.channels(), | 136 silent_bus_ = media::AudioBus::Create(audio_bus.channels(), |
| 137 audio_bus.frames()); | 137 audio_bus.frames()); |
| 138 silent_bus_->Zero(); | 138 silent_bus_->Zero(); |
| 139 } | 139 } |
| 140 deliverer_.OnData(*silent_bus_, reference_time); | 140 deliverer_.OnData(*silent_bus_, reference_time); |
| 141 } | 141 } |
| 142 } | 142 } |
| 143 | 143 |
| 144 void MediaStreamAudioTrack::getSettings( | 144 void MediaStreamAudioTrack::getSettings( |
| 145 blink::WebMediaStreamTrack::Settings& settings) { | 145 blink::WebMediaStreamTrack::Settings& settings) { |
| 146 // TODO(hta): Extract the real value. | 146 // At the moment, all audio values are extracted from the source, |
| 147 settings.deviceId = blink::WebString("audio device ID"); | 147 // not the track. |
| 148 } | 148 } |
| 149 | 149 |
| 150 } // namespace content | 150 } // namespace content |
| OLD | NEW |