OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "media/filters/audio_renderer_base.h" | 5 #include "media/filters/audio_renderer_base.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> |
8 | 9 |
9 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/logging.h" |
10 #include "media/base/filter_host.h" | 12 #include "media/base/filter_host.h" |
11 #include "media/filters/audio_renderer_algorithm_ola.h" | 13 #include "media/filters/audio_renderer_algorithm_ola.h" |
12 | 14 |
13 namespace media { | 15 namespace media { |
14 | 16 |
15 AudioRendererBase::AudioRendererBase() | 17 AudioRendererBase::AudioRendererBase() |
16 : state_(kUninitialized), | 18 : state_(kUninitialized), |
17 recieved_end_of_stream_(false), | 19 recieved_end_of_stream_(false), |
18 rendered_end_of_stream_(false), | 20 rendered_end_of_stream_(false), |
19 pending_reads_(0) { | 21 pending_reads_(0) { |
(...skipping 246 matching lines...) Loading... |
266 | 268 |
267 void AudioRendererBase::SetPlaybackRate(float playback_rate) { | 269 void AudioRendererBase::SetPlaybackRate(float playback_rate) { |
268 algorithm_->set_playback_rate(playback_rate); | 270 algorithm_->set_playback_rate(playback_rate); |
269 } | 271 } |
270 | 272 |
271 float AudioRendererBase::GetPlaybackRate() { | 273 float AudioRendererBase::GetPlaybackRate() { |
272 return algorithm_->playback_rate(); | 274 return algorithm_->playback_rate(); |
273 } | 275 } |
274 | 276 |
275 } // namespace media | 277 } // namespace media |
OLD | NEW |