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_CODEC_AUDIO_ENCODER_SPEEX_H_ | |
6 #define REMOTING_CODEC_AUDIO_ENCODER_SPEEX_H_ | |
7 | |
8 #include "base/memory/scoped_ptr.h" | |
9 #include "remoting/codec/audio_encoder.h" | |
10 #include "third_party/speex/speex.h" | |
11 | |
12 namespace remoting { | |
13 | |
14 class AudioPacket; | |
15 | |
16 class AudioEncoderSpeex : public AudioEncoder { | |
17 public: | |
18 AudioEncoderSpeex(); | |
19 virtual ~AudioEncoderSpeex(); | |
20 | |
21 // AudioEncoder implementation. | |
22 virtual scoped_ptr<AudioPacket> Encode( | |
23 scoped_ptr<AudioPacket> packet) OVERRIDE; | |
24 | |
25 private: | |
26 SpeexBits speex_bits_; | |
Sergey Ulanov
2012/08/10 20:41:37
scoped_ptr to avoid the header
kxing
2012/08/13 21:39:45
Done.
| |
27 void* speex_state_; | |
28 int speex_frame_size_; | |
29 | |
30 scoped_array<char> buffer_; | |
31 int buffer_size_; | |
32 | |
33 DISALLOW_COPY_AND_ASSIGN(AudioEncoderSpeex); | |
34 }; | |
35 | |
36 } // namespace remoting | |
37 | |
38 #endif // REMOTING_CODEC_AUDIO_ENCODER_SPEEX_H_ | |
OLD | NEW |