Chromium Code Reviews

Side by Side Diff: remoting/codec/audio_decoder_speex.h

Issue 10831246: Speex encoding/decoding. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | 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_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_
OLDNEW

Powered by Google App Engine