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

Unified Diff: media/audio/android/opensles_output.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/android/opensles_output.cc
diff --git a/media/audio/android/opensles_output.cc b/media/audio/android/opensles_output.cc
index 7fffe3b21f2219d30a5058a43f746205c7e372d0..2a89f94552b05a6592009039249484e05aa2f282 100644
--- a/media/audio/android/opensles_output.cc
+++ b/media/audio/android/opensles_output.cc
@@ -330,7 +330,7 @@ void OpenSLESOutputStream::FillBufferQueueNoLock() {
// Read data from the registered client source.
// TODO(henrika): Investigate if it is possible to get a more accurate
// delay estimation.
- const uint32 hardware_delay = buffer_size_bytes_;
+ const uint32_t hardware_delay = buffer_size_bytes_;
int frames_filled =
callback_->OnMoreData(audio_bus_.get(), hardware_delay, 0);
if (frames_filled <= 0) {
@@ -365,7 +365,7 @@ void OpenSLESOutputStream::SetupAudioBuffer() {
DCHECK(thread_checker_.CalledOnValidThread());
DCHECK(!audio_data_[0]);
for (int i = 0; i < kMaxNumOfBuffersInQueue; ++i) {
- audio_data_[i] = new uint8[buffer_size_bytes_];
+ audio_data_[i] = new uint8_t[buffer_size_bytes_];
}
}

Powered by Google App Engine
This is Rietveld 408576698