ExtensionInstallDialogView: fix scrolling behavior on Views (Win,Linux)
[chromium-blink-merge.git] / remoting / client / plugin / pepper_audio_player.h
blobdcf2c6b8579904c496f32ba0dd7b30ac2304f7fd
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
3 // found in the LICENSE file.
5 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_AUDIO_PLAYER_H_
6 #define REMOTING_CLIENT_PLUGIN_PEPPER_AUDIO_PLAYER_H_
8 #include "base/callback.h"
9 #include "ppapi/cpp/audio.h"
10 #include "ppapi/cpp/instance.h"
11 #include "remoting/client/audio_player.h"
12 #include "remoting/proto/audio.pb.h"
14 namespace remoting {
16 class PepperAudioPlayer : public AudioPlayer {
17 public:
18 explicit PepperAudioPlayer(pp::Instance* instance);
19 ~PepperAudioPlayer() override;
21 uint32 GetSamplesPerFrame() override;
23 bool ResetAudioPlayer(AudioPacket::SamplingRate sampling_rate) override;
25 private:
26 pp::Instance* instance_;
27 pp::Audio audio_;
29 // The count of sample frames per channel in an audio buffer.
30 uint32 samples_per_frame_;
32 DISALLOW_COPY_AND_ASSIGN(PepperAudioPlayer);
35 } // namespace remoting
37 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_AUDIO_PLAYER_H_