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

Side by Side Diff: remoting/client/plugin/pepper_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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_AUDIO_PLAYER_H_ 5 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_AUDIO_PLAYER_H_
6 #define REMOTING_CLIENT_PLUGIN_PEPPER_AUDIO_PLAYER_H_ 6 #define REMOTING_CLIENT_PLUGIN_PEPPER_AUDIO_PLAYER_H_
7 7
8 #include <stdint.h>
9
8 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/macros.h"
9 #include "ppapi/cpp/audio.h" 12 #include "ppapi/cpp/audio.h"
10 #include "ppapi/cpp/instance.h" 13 #include "ppapi/cpp/instance.h"
11 #include "remoting/client/audio_player.h" 14 #include "remoting/client/audio_player.h"
12 #include "remoting/proto/audio.pb.h" 15 #include "remoting/proto/audio.pb.h"
13 16
14 namespace remoting { 17 namespace remoting {
15 18
16 class PepperAudioPlayer : public AudioPlayer { 19 class PepperAudioPlayer : public AudioPlayer {
17 public: 20 public:
18 explicit PepperAudioPlayer(pp::Instance* instance); 21 explicit PepperAudioPlayer(pp::Instance* instance);
19 ~PepperAudioPlayer() override; 22 ~PepperAudioPlayer() override;
20 23
21 uint32 GetSamplesPerFrame() override; 24 uint32_t GetSamplesPerFrame() override;
22 25
23 bool ResetAudioPlayer(AudioPacket::SamplingRate sampling_rate) override; 26 bool ResetAudioPlayer(AudioPacket::SamplingRate sampling_rate) override;
24 27
25 private: 28 private:
26 pp::Instance* instance_; 29 pp::Instance* instance_;
27 pp::Audio audio_; 30 pp::Audio audio_;
28 31
29 // The count of sample frames per channel in an audio buffer. 32 // The count of sample frames per channel in an audio buffer.
30 uint32 samples_per_frame_; 33 uint32_t samples_per_frame_;
31 34
32 DISALLOW_COPY_AND_ASSIGN(PepperAudioPlayer); 35 DISALLOW_COPY_AND_ASSIGN(PepperAudioPlayer);
33 }; 36 };
34 37
35 } // namespace remoting 38 } // namespace remoting
36 39
37 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_AUDIO_PLAYER_H_ 40 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_AUDIO_PLAYER_H_
OLDNEW
« no previous file with comments | « remoting/client/plugin/pepper_address_resolver.h ('k') | remoting/client/plugin/pepper_audio_player.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698