OLD | NEW |
---|---|
(Empty) | |
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. | |
4 | |
5 #ifndef REMOTING_BASE_AUDIO_ENCODER_H_ | |
6 #define REMOTING_BASE_AUDIO_ENCODER_H_ | |
Sergey Ulanov
2012/07/31 20:00:18
can you please create new directory remoting/codec
kxing
2012/07/31 22:11:44
Done.
| |
7 | |
8 #include "base/callback.h" | |
9 #include "base/memory/scoped_ptr.h" | |
10 | |
11 namespace remoting { | |
12 | |
13 class AudioCaptureData; | |
14 class AudioPacket; | |
15 | |
16 class AudioEncoder { | |
17 public: | |
18 typedef base::Callback<void(scoped_ptr<AudioPacket>)> PacketEncodedCallback; | |
19 | |
20 virtual ~AudioEncoder() {} | |
21 | |
22 virtual void Encode( | |
23 scoped_ptr<AudioCaptureData> audio_capture_data, | |
24 const PacketEncodedCallback& packet_captured_callback) = 0; | |
Sergey Ulanov
2012/07/31 20:00:18
Don't need this to be asyncronous. This function s
kxing
2012/07/31 22:11:44
Done.
| |
25 }; | |
26 | |
27 } // namespace remoting | |
28 | |
29 #endif // REMOTING_BASE_AUDIO_ENCODER_H_ | |
OLD | NEW |