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

Unified Diff: remoting/host/audio_capturer_win.cc

Issue 1547473005: Switch to standard integer types in remoting/host/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « remoting/host/audio_capturer_win.h ('k') | remoting/host/audio_pump.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/audio_capturer_win.cc
diff --git a/remoting/host/audio_capturer_win.cc b/remoting/host/audio_capturer_win.cc
index d9a8a14326eeb4350e14c2e989727120b803cb09..325a11d5df389c927bd9d8fa56a5eb075db9c5cc 100644
--- a/remoting/host/audio_capturer_win.cc
+++ b/remoting/host/audio_capturer_win.cc
@@ -9,8 +9,9 @@
#include <mmreg.h>
#include <mmsystem.h>
-#include <algorithm>
+#include <stdint.h>
#include <stdlib.h>
+#include <algorithm>
#include "base/logging.h"
@@ -226,8 +227,8 @@ void AudioCapturerWin::DoCapture() {
break;
if ((flags & AUDCLNT_BUFFERFLAGS_SILENT) == 0 &&
- !silence_detector_.IsSilence(
- reinterpret_cast<const int16*>(data), frames * kChannels)) {
+ !silence_detector_.IsSilence(reinterpret_cast<const int16_t*>(data),
+ frames * kChannels)) {
scoped_ptr<AudioPacket> packet(new AudioPacket());
packet->add_data(data, frames * wave_format_ex_->nBlockAlign);
packet->set_encoding(AudioPacket::ENCODING_RAW);
« no previous file with comments | « remoting/host/audio_capturer_win.h ('k') | remoting/host/audio_pump.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698