Chromium Code Reviews| 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_DECODER_SPEEX_H_ | |
| 6 #define REMOTING_CODEC_AUDIO_DECODER_SPEEX_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "remoting/codec/audio_decoder.h" | |
| 11 | |
| 12 struct SpeexBits; | |
| 13 | |
| 14 namespace remoting { | |
| 15 | |
| 16 class AudioPacket; | |
| 17 | |
| 18 class AudioDecoderSpeex : public AudioDecoder { | |
| 19 public: | |
| 20 AudioDecoderSpeex(); | |
| 21 virtual ~AudioDecoderSpeex(); | |
| 22 | |
| 23 // AudioDecoder implementation | |
|
Sergey Ulanov
2012/08/14 00:54:32
nit: add period at the end of the comment
kxing
2012/08/16 13:57:54
Done.
| |
| 24 virtual scoped_ptr<AudioPacket> Decode( | |
| 25 scoped_ptr<AudioPacket> packet) OVERRIDE; | |
| 26 | |
| 27 private: | |
| 28 scoped_ptr<SpeexBits> speex_bits_; | |
| 29 void* speex_state_; | |
| 30 int speex_frame_size_; | |
| 31 | |
| 32 scoped_array<int16> buffer_; | |
|
Sergey Ulanov
2012/08/14 00:54:32
Do we need this buffer? each input packet always c
kxing
2012/08/16 13:57:54
Done.
| |
| 33 | |
| 34 DISALLOW_COPY_AND_ASSIGN(AudioDecoderSpeex); | |
| 35 }; | |
| 36 | |
| 37 } // namespace remoting | |
| 38 | |
| 39 #endif // REMOTING_CODEC_AUDIO_DECODER_SPEEX_H_ | |
| OLD | NEW |