| 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 <list> | 5 #include <list> |
| 6 | 6 |
| 7 #include "base/bind_helpers.h" | 7 #include "base/bind_helpers.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "mojo/public/cpp/application/connect.h" | 9 #include "mojo/public/cpp/application/connect.h" |
| 10 #include "mojo/services/media/audio/interfaces/audio_server.mojom.h" | 10 #include "mojo/services/media/audio/interfaces/audio_server.mojom.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 void AudioTrackController::Configure( | 39 void AudioTrackController::Configure( |
| 40 const std::unique_ptr<StreamType>& stream_type, | 40 const std::unique_ptr<StreamType>& stream_type, |
| 41 const ConfigureCallback& callback) { | 41 const ConfigureCallback& callback) { |
| 42 AudioTrackConfigurationPtr config = AudioTrackConfiguration::New(); | 42 AudioTrackConfigurationPtr config = AudioTrackConfiguration::New(); |
| 43 config->media_type = MediaType::From(stream_type); | 43 config->media_type = MediaType::From(stream_type); |
| 44 | 44 |
| 45 MediaConsumerPtr consumer; | 45 MediaConsumerPtr consumer; |
| 46 audio_track_->Configure(config.Pass(), GetProxy(&consumer)); | 46 audio_track_->Configure(config.Pass(), GetProxy(&consumer)); |
| 47 | 47 |
| 48 RateControlPtr rate_control; | 48 MediaTimelineControlSitePtr timeline_control_site; |
| 49 audio_track_->GetRateControl(GetProxy(&rate_control)); | 49 audio_track_->GetTimelineControlSite(GetProxy(&timeline_control_site)); |
| 50 | 50 |
| 51 callback(consumer.Pass(), rate_control.Pass()); | 51 callback(consumer.Pass(), timeline_control_site.Pass()); |
| 52 } | 52 } |
| 53 | 53 |
| 54 } // namespace media | 54 } // namespace media |
| 55 } // namespace mojo | 55 } // namespace mojo |
| OLD | NEW |