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

Side by Side Diff: chromecast/media/cma/backend/alsa/media_pipeline_backend_alsa.cc

Issue 2738873002: [Chromecast] Implement new volume control API (Closed)
Patch Set: slan comments Created 3 years, 9 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "chromecast/media/cma/backend/alsa/media_pipeline_backend_alsa.h" 5 #include "chromecast/media/cma/backend/alsa/media_pipeline_backend_alsa.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "chromecast/base/task_runner_impl.h" 9 #include "chromecast/base/task_runner_impl.h"
10 #include "chromecast/media/cma/backend/alsa/audio_decoder_alsa.h" 10 #include "chromecast/media/cma/backend/alsa/audio_decoder_alsa.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 95
96 bool MediaPipelineBackendAlsa::Primary() const { 96 bool MediaPipelineBackendAlsa::Primary() const {
97 return (params_.audio_type != 97 return (params_.audio_type !=
98 MediaPipelineDeviceParams::kAudioStreamSoundEffects); 98 MediaPipelineDeviceParams::kAudioStreamSoundEffects);
99 } 99 }
100 100
101 std::string MediaPipelineBackendAlsa::DeviceId() const { 101 std::string MediaPipelineBackendAlsa::DeviceId() const {
102 return params_.device_id; 102 return params_.device_id;
103 } 103 }
104 104
105 AudioContentType MediaPipelineBackendAlsa::ContentType() const {
106 return params_.content_type;
107 }
108
105 const scoped_refptr<base::SingleThreadTaskRunner>& 109 const scoped_refptr<base::SingleThreadTaskRunner>&
106 MediaPipelineBackendAlsa::GetTaskRunner() const { 110 MediaPipelineBackendAlsa::GetTaskRunner() const {
107 return static_cast<TaskRunnerImpl*>(params_.task_runner)->runner(); 111 return static_cast<TaskRunnerImpl*>(params_.task_runner)->runner();
108 } 112 }
109 113
110 } // namespace media 114 } // namespace media
111 } // namespace chromecast 115 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/media/cma/backend/alsa/media_pipeline_backend_alsa.h ('k') | chromecast/media/cma/backend/alsa/slew_volume.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698