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

Side by Side Diff: remoting/client/audio_player.h

Issue 10795066: Support for both 44.1 kHz and 48 kHz on the client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Small cleanup Created 8 years, 5 months 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 | Annotate | Revision Log
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_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_
OLDNEW
« no previous file with comments | « no previous file | remoting/client/chromoting_client.cc » ('j') | remoting/client/plugin/pepper_audio_player.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698