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

Side by Side Diff: chromecast/media/audio/cast_audio_manager.cc

Issue 2023943002: Revert of Forward output glitch information from stream WebRTC log (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 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/audio/cast_audio_manager.h" 5 #include "chromecast/media/audio/cast_audio_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "chromecast/media/audio/cast_audio_output_stream.h" 10 #include "chromecast/media/audio/cast_audio_output_stream.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 ::media::CHANNEL_LAYOUT_STEREO, 48000, 16, 1024); 66 ::media::CHANNEL_LAYOUT_STEREO, 48000, 16, 1024);
67 } 67 }
68 68
69 std::unique_ptr<MediaPipelineBackend> 69 std::unique_ptr<MediaPipelineBackend>
70 CastAudioManager::CreateMediaPipelineBackend( 70 CastAudioManager::CreateMediaPipelineBackend(
71 const MediaPipelineDeviceParams& params) { 71 const MediaPipelineDeviceParams& params) {
72 return backend_manager_->CreateMediaPipelineBackend(params); 72 return backend_manager_->CreateMediaPipelineBackend(params);
73 } 73 }
74 74
75 ::media::AudioOutputStream* CastAudioManager::MakeLinearOutputStream( 75 ::media::AudioOutputStream* CastAudioManager::MakeLinearOutputStream(
76 const ::media::AudioParameters& params, 76 const ::media::AudioParameters& params) {
77 const ::media::AudioManager::LogCallback& log_callback) {
78 DCHECK_EQ(::media::AudioParameters::AUDIO_PCM_LINEAR, params.format()); 77 DCHECK_EQ(::media::AudioParameters::AUDIO_PCM_LINEAR, params.format());
79 return new CastAudioOutputStream(params, this); 78 return new CastAudioOutputStream(params, this);
80 } 79 }
81 80
82 ::media::AudioOutputStream* CastAudioManager::MakeLowLatencyOutputStream( 81 ::media::AudioOutputStream* CastAudioManager::MakeLowLatencyOutputStream(
83 const ::media::AudioParameters& params, 82 const ::media::AudioParameters& params,
84 const std::string& device_id, 83 const std::string& device_id) {
85 const ::media::AudioManager::LogCallback& log_callback) {
86 DCHECK_EQ(::media::AudioParameters::AUDIO_PCM_LOW_LATENCY, params.format()); 84 DCHECK_EQ(::media::AudioParameters::AUDIO_PCM_LOW_LATENCY, params.format());
87 return new CastAudioOutputStream(params, this); 85 return new CastAudioOutputStream(params, this);
88 } 86 }
89 87
90 ::media::AudioInputStream* CastAudioManager::MakeLinearInputStream( 88 ::media::AudioInputStream* CastAudioManager::MakeLinearInputStream(
91 const ::media::AudioParameters& params, 89 const ::media::AudioParameters& params,
92 const std::string& device_id, 90 const std::string& device_id) {
93 const ::media::AudioManager::LogCallback& log_callback) {
94 LOG(WARNING) << "No support for input audio devices"; 91 LOG(WARNING) << "No support for input audio devices";
95 return nullptr; 92 return nullptr;
96 } 93 }
97 94
98 ::media::AudioInputStream* CastAudioManager::MakeLowLatencyInputStream( 95 ::media::AudioInputStream* CastAudioManager::MakeLowLatencyInputStream(
99 const ::media::AudioParameters& params, 96 const ::media::AudioParameters& params,
100 const std::string& device_id, 97 const std::string& device_id) {
101 const ::media::AudioManager::LogCallback& log_callback) {
102 LOG(WARNING) << "No support for input audio devices"; 98 LOG(WARNING) << "No support for input audio devices";
103 return nullptr; 99 return nullptr;
104 } 100 }
105 101
106 ::media::AudioParameters CastAudioManager::GetPreferredOutputStreamParameters( 102 ::media::AudioParameters CastAudioManager::GetPreferredOutputStreamParameters(
107 const std::string& output_device_id, 103 const std::string& output_device_id,
108 const ::media::AudioParameters& input_params) { 104 const ::media::AudioParameters& input_params) {
109 ::media::ChannelLayout channel_layout = ::media::CHANNEL_LAYOUT_STEREO; 105 ::media::ChannelLayout channel_layout = ::media::CHANNEL_LAYOUT_STEREO;
110 int sample_rate = kDefaultSampleRate; 106 int sample_rate = kDefaultSampleRate;
111 int buffer_size = kDefaultOutputBufferSize; 107 int buffer_size = kDefaultOutputBufferSize;
(...skipping 10 matching lines...) Expand all
122 } 118 }
123 119
124 ::media::AudioParameters output_params( 120 ::media::AudioParameters output_params(
125 ::media::AudioParameters::AUDIO_PCM_LOW_LATENCY, channel_layout, 121 ::media::AudioParameters::AUDIO_PCM_LOW_LATENCY, channel_layout,
126 sample_rate, bits_per_sample, buffer_size); 122 sample_rate, bits_per_sample, buffer_size);
127 return output_params; 123 return output_params;
128 } 124 }
129 125
130 } // namespace media 126 } // namespace media
131 } // namespace chromecast 127 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/media/audio/cast_audio_manager.h ('k') | chromecast/media/audio/cast_audio_output_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698