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

Unified Diff: media/audio/audio_output_resampler.cc

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more 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 side-by-side diff with in-line comments
Download patch
Index: media/audio/audio_output_resampler.cc
diff --git a/media/audio/audio_output_resampler.cc b/media/audio/audio_output_resampler.cc
index ba338358bf8d1e3ef29dd4d89dc560b7dd1a28ab..e007d150e4119097b5d67525a9c05be91257d445 100644
--- a/media/audio/audio_output_resampler.cc
+++ b/media/audio/audio_output_resampler.cc
@@ -58,7 +58,7 @@ class OnMoreDataConverter
// Last |total_bytes_delay| received via OnMoreData(), used to correct
// playback delay by ProvideInput() and passed on to |source_callback_|.
- uint32 current_total_bytes_delay_;
+ uint32_t current_total_bytes_delay_;
const int input_bytes_per_second_;
@@ -387,7 +387,7 @@ double OnMoreDataConverter::ProvideInput(AudioBus* dest,
// Adjust playback delay to include |buffer_delay|.
// TODO(dalecurtis): Stop passing bytes around, it doesn't make sense since
// AudioBus is just float data. Use TimeDelta instead.
- uint32 new_total_bytes_delay = base::saturated_cast<uint32>(
+ uint32_t new_total_bytes_delay = base::saturated_cast<uint32_t>(
io_ratio_ * (current_total_bytes_delay_ +
buffer_delay.InSecondsF() * input_bytes_per_second_));

Powered by Google App Engine
This is Rietveld 408576698