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

Unified Diff: media/audio/alsa/alsa_input.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/alsa/alsa_input.cc
diff --git a/media/audio/alsa/alsa_input.cc b/media/audio/alsa/alsa_input.cc
index 67f2359365223ea0b38dd379c5bb07952e89fa91..a6b4cc3a4c7b77a9b52c36bee5ce293ae53d72ac 100644
--- a/media/audio/alsa/alsa_input.cc
+++ b/media/audio/alsa/alsa_input.cc
@@ -4,7 +4,6 @@
#include "media/audio/alsa/alsa_input.h"
-#include "base/basictypes.h"
#include "base/bind.h"
#include "base/logging.h"
#include "base/message_loop/message_loop.h"
@@ -60,7 +59,7 @@ bool AlsaPcmInputStream::Open() {
return false;
}
- uint32 latency_us =
+ uint32_t latency_us =
buffer_duration_.InMicroseconds() * kNumPacketsInRingBuffer;
// Use the same minimum required latency as output.
@@ -87,7 +86,7 @@ bool AlsaPcmInputStream::Open() {
}
if (device_handle_) {
- audio_buffer_.reset(new uint8[bytes_per_buffer_]);
+ audio_buffer_.reset(new uint8_t[bytes_per_buffer_]);
// Open the microphone mixer.
mixer_handle_ = alsa_util::OpenMixer(wrapper_, device_name_);
@@ -196,8 +195,8 @@ void AlsaPcmInputStream::ReadAudio() {
}
int num_buffers = frames / params_.frames_per_buffer();
- uint32 hardware_delay_bytes =
- static_cast<uint32>(GetCurrentDelay() * params_.GetBytesPerFrame());
+ uint32_t hardware_delay_bytes =
+ static_cast<uint32_t>(GetCurrentDelay() * params_.GetBytesPerFrame());
double normalized_volume = 0.0;
// Update the AGC volume level once every second. Note that, |volume| is

Powered by Google App Engine
This is Rietveld 408576698