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

Unified Diff: remoting/client/audio_player.h

Issue 1542203002: Switch to standard integer types in remoting/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@int-remoting-host
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/client/audio_decode_scheduler.cc ('k') | remoting/client/audio_player.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/audio_player.h
diff --git a/remoting/client/audio_player.h b/remoting/client/audio_player.h
index e1317379a5e341833d63e9abcc4215bafaa2544b..94de1b4297e25d9ef2bc092ca3819f63f7580e76 100644
--- a/remoting/client/audio_player.h
+++ b/remoting/client/audio_player.h
@@ -5,8 +5,12 @@
#ifndef REMOTING_CLIENT_AUDIO_PLAYER_H_
#define REMOTING_CLIENT_AUDIO_PLAYER_H_
+#include <stddef.h>
+#include <stdint.h>
+
#include <list>
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/synchronization/lock.h"
#include "remoting/proto/audio.pb.h"
@@ -23,7 +27,7 @@ class AudioPlayer {
AudioPlayer();
// Return the recommended number of samples to include in a frame.
- virtual uint32 GetSamplesPerFrame() = 0;
+ virtual uint32_t GetSamplesPerFrame() = 0;
// Resets the audio player and starts playback.
// Returns true on success.
@@ -31,7 +35,7 @@ class AudioPlayer {
// Function called by the browser when it needs more audio samples.
static void AudioPlayerCallback(void* samples,
- uint32 buffer_size,
+ uint32_t buffer_size,
void* data);
private:
@@ -40,7 +44,7 @@ class AudioPlayer {
typedef std::list<AudioPacket*> AudioPacketQueue;
void ResetQueue();
- void FillWithSamples(void* samples, uint32 buffer_size);
+ void FillWithSamples(void* samples, uint32_t buffer_size);
AudioPacket::SamplingRate sampling_rate_;
« no previous file with comments | « remoting/client/audio_decode_scheduler.cc ('k') | remoting/client/audio_player.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698