| OLD | NEW |
| 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_AUDIO_PLAYER_H_ | 5 #ifndef REMOTING_CLIENT_AUDIO_PLAYER_H_ |
| 6 #define REMOTING_CLIENT_AUDIO_PLAYER_H_ | 6 #define REMOTING_CLIENT_AUDIO_PLAYER_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 | 9 |
| 10 namespace pp { | 10 namespace pp { |
| 11 class Instance; | 11 class Instance; |
| 12 } // namespace pp | 12 } // namespace pp |
| 13 | 13 |
| 14 namespace remoting { | 14 namespace remoting { |
| 15 | 15 |
| 16 class AudioPacket; | 16 class AudioPacket; |
| 17 | 17 |
| 18 class AudioPlayer { | 18 class AudioPlayer { |
| 19 public: | 19 public: |
| 20 virtual ~AudioPlayer() {} | 20 virtual ~AudioPlayer() {} |
| 21 | 21 |
| 22 // Returns true if successful, false otherwise. | |
| 23 virtual bool Start() = 0; | |
| 24 | |
| 25 virtual void ProcessAudioPacket(scoped_ptr<AudioPacket> packet) = 0; | 22 virtual void ProcessAudioPacket(scoped_ptr<AudioPacket> packet) = 0; |
| 26 | 23 |
| 27 virtual bool IsRunning() const = 0; | |
| 28 | |
| 29 protected: | 24 protected: |
| 30 AudioPlayer() {} | 25 AudioPlayer() {} |
| 31 | 26 |
| 32 private: | 27 private: |
| 33 DISALLOW_COPY_AND_ASSIGN(AudioPlayer); | 28 DISALLOW_COPY_AND_ASSIGN(AudioPlayer); |
| 34 }; | 29 }; |
| 35 | 30 |
| 36 } // namespace remoting | 31 } // namespace remoting |
| 37 | 32 |
| 38 #endif // REMOTING_CLIENT_AUDIO_PLAYER_H_ | 33 #endif // REMOTING_CLIENT_AUDIO_PLAYER_H_ |
| OLD | NEW |