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/memory/scoped_ptr.h" | |
| 9 #include "remoting/codec/audio_decoder.h" | |
| 10 #include "third_party/speex/speex.h" | |
| 11 | |
| 12 namespace remoting { | |
| 13 | |
| 14 class AudioPacket; | |
| 15 | |
| 16 class AudioDecoderSpeex : public AudioDecoder { | |
| 17 public: | |
| 18 AudioDecoderSpeex(); | |
| 19 virtual ~AudioDecoderSpeex(); | |
| 20 | |
| 21 // AudioDecoder implementation | |
| 22 virtual scoped_ptr<AudioPacket> Decode( | |
| 23 scoped_ptr<AudioPacket> packet) OVERRIDE; | |
| 24 | |
| 25 private: | |
| 26 SpeexBits speex_bits_; | |
|
Sergey Ulanov
2012/08/10 20:41:37
maybe use scoped_ptr here - that way you can avoid
kxing
2012/08/13 21:39:45
Done.
| |
| 27 void* speex_state_; | |
| 28 int speex_frame_size_; | |
| 29 | |
| 30 scoped_array<spx_int16_t> buffer_; | |
| 31 | |
| 32 DISALLOW_COPY_AND_ASSIGN(AudioDecoderSpeex); | |
| 33 }; | |
| 34 | |
| 35 } // namespace remoting | |
| 36 | |
| 37 #endif // REMOTING_CODEC_AUDIO_DECODER_SPEEX_H_ | |
| OLD | NEW |