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

Side by Side Diff: media/audio/audio_output_resampler.cc

Issue 1542013004: Switch to standard integer types in media/, take 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more stddef Created 5 years 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
« no previous file with comments | « media/audio/audio_output_proxy_unittest.cc ('k') | media/audio/audio_output_stream_sink.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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>
8
7 #include "base/bind.h" 9 #include "base/bind.h"
8 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
9 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/macros.h"
10 #include "base/metrics/histogram.h" 13 #include "base/metrics/histogram.h"
11 #include "base/numerics/safe_conversions.h" 14 #include "base/numerics/safe_conversions.h"
12 #include "base/single_thread_task_runner.h" 15 #include "base/single_thread_task_runner.h"
13 #include "base/trace_event/trace_event.h" 16 #include "base/trace_event/trace_event.h"
14 #include "build/build_config.h" 17 #include "build/build_config.h"
15 #include "media/audio/audio_output_proxy.h" 18 #include "media/audio/audio_output_proxy.h"
16 #include "media/audio/sample_rates.h" 19 #include "media/audio/sample_rates.h"
17 #include "media/base/audio_converter.h" 20 #include "media/base/audio_converter.h"
18 #include "media/base/limits.h" 21 #include "media/base/limits.h"
19 22
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 dest->ZeroFramesPartial(frames, dest->frames() - frames); 404 dest->ZeroFramesPartial(frames, dest->frames() - frames);
402 return frames > 0 ? 1 : 0; 405 return frames > 0 ? 1 : 0;
403 } 406 }
404 407
405 void OnMoreDataConverter::OnError(AudioOutputStream* stream) { 408 void OnMoreDataConverter::OnError(AudioOutputStream* stream) {
406 error_occurred_ = true; 409 error_occurred_ = true;
407 source_callback_->OnError(stream); 410 source_callback_->OnError(stream);
408 } 411 }
409 412
410 } // namespace media 413 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/audio_output_proxy_unittest.cc ('k') | media/audio/audio_output_stream_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698