| Index: remoting/client/audio_player.h
|
| diff --git a/remoting/client/audio_player.h b/remoting/client/audio_player.h
|
| index ea0b789d75c5b20b7b5c7947446865a59d90178b..003f8d8bc6451e9238a3a812db73746ead4badff 100644
|
| --- a/remoting/client/audio_player.h
|
| +++ b/remoting/client/audio_player.h
|
| @@ -13,21 +13,25 @@
|
|
|
| #include "base/macros.h"
|
| #include "base/synchronization/lock.h"
|
| +#include "remoting/client/audio_consumer.h"
|
| #include "remoting/proto/audio.pb.h"
|
|
|
| namespace remoting {
|
|
|
| -class AudioPlayer {
|
| +class AudioPlayer : public AudioConsumer {
|
| public:
|
| // The number of channels in the audio stream (only supporting stereo audio
|
| // for now).
|
| static const int kChannels = 2;
|
| static const int kSampleSizeBytes = 2;
|
|
|
| - virtual ~AudioPlayer();
|
| + ~AudioPlayer() override;
|
|
|
| void ProcessAudioPacket(std::unique_ptr<AudioPacket> packet);
|
|
|
| + // AudioConsumer implementation.
|
| + void AddAudioPacket(std::unique_ptr<AudioPacket> packet) override;
|
| +
|
| protected:
|
| AudioPlayer();
|
|
|
|
|