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

Side by Side Diff: remoting/base/audio_encoder.h

Issue 10836017: Piping for audio encoding. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed some style issues Created 8 years, 4 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698