OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/audio/audio_output_resampler.h" | 5 #include "media/audio/audio_output_resampler.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram_macros.h" |
14 #include "base/numerics/safe_conversions.h" | 14 #include "base/numerics/safe_conversions.h" |
15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
16 #include "base/trace_event/trace_event.h" | 16 #include "base/trace_event/trace_event.h" |
17 #include "build/build_config.h" | 17 #include "build/build_config.h" |
18 #include "media/audio/audio_output_proxy.h" | 18 #include "media/audio/audio_output_proxy.h" |
19 #include "media/audio/sample_rates.h" | 19 #include "media/audio/sample_rates.h" |
20 #include "media/base/audio_converter.h" | 20 #include "media/base/audio_converter.h" |
21 #include "media/base/limits.h" | 21 #include "media/base/limits.h" |
22 | 22 |
23 namespace media { | 23 namespace media { |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 dest->ZeroFramesPartial(frames, dest->frames() - frames); | 411 dest->ZeroFramesPartial(frames, dest->frames() - frames); |
412 return frames > 0 ? 1 : 0; | 412 return frames > 0 ? 1 : 0; |
413 } | 413 } |
414 | 414 |
415 void OnMoreDataConverter::OnError(AudioOutputStream* stream) { | 415 void OnMoreDataConverter::OnError(AudioOutputStream* stream) { |
416 error_occurred_ = true; | 416 error_occurred_ = true; |
417 source_callback_->OnError(stream); | 417 source_callback_->OnError(stream); |
418 } | 418 } |
419 | 419 |
420 } // namespace media | 420 } // namespace media |
OLD | NEW |