#ifndef REMOTING_CLIENT_PLUGIN_PEPPER_AUDIO_PLAYER_H_
#define REMOTING_CLIENT_PLUGIN_PEPPER_AUDIO_PLAYER_H_
#include "base/callback.h"
#include "ppapi/cpp/audio.h"
#include "ppapi/cpp/instance.h"
#include "remoting/client/audio_player.h"
#include "remoting/proto/audio.pb.h"
namespace remoting {
class PepperAudioPlayer : public AudioPlayer {
public:
explicit PepperAudioPlayer(pp::Instance* instance);
virtual ~PepperAudioPlayer();
virtual uint32 GetSamplesPerFrame() OVERRIDE;
virtual bool ResetAudioPlayer(AudioPacket::SamplingRate sampling_rate)
OVERRIDE;
private:
pp::Instance* instance_;
pp::Audio audio_;
uint32 samples_per_frame_;
DISALLOW_COPY_AND_ASSIGN(PepperAudioPlayer);
};
}
#endif