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

Side by Side Diff: services/media/factory_service/audio_track_controller.cc

Issue 1986303002: Motown: Use new TimelineTransform and related definitions (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fixes per feedback. Created 4 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 <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
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
OLDNEW
« no previous file with comments | « services/media/factory_service/audio_track_controller.h ('k') | services/media/factory_service/media_demux_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698