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

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

Issue 13642007: Rewrite scoped_array<T> to scoped_ptr<T[]> in remoting/, Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Manually rewrite Win files. Created 7 years, 8 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
« no previous file with comments | « remoting/codec/audio_encoder_opus.h ('k') | remoting/codec/codec_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_CODEC_AUDIO_ENCODER_SPEEX_H_ 5 #ifndef REMOTING_CODEC_AUDIO_ENCODER_SPEEX_H_
6 #define REMOTING_CODEC_AUDIO_ENCODER_SPEEX_H_ 6 #define REMOTING_CODEC_AUDIO_ENCODER_SPEEX_H_
7 7
8 #include <list> 8 #include <list>
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 12 matching lines...) Expand all
23 23
24 // AudioEncoder implementation. 24 // AudioEncoder implementation.
25 virtual scoped_ptr<AudioPacket> Encode( 25 virtual scoped_ptr<AudioPacket> Encode(
26 scoped_ptr<AudioPacket> packet) OVERRIDE; 26 scoped_ptr<AudioPacket> packet) OVERRIDE;
27 27
28 private: 28 private:
29 scoped_ptr<SpeexBits> speex_bits_; 29 scoped_ptr<SpeexBits> speex_bits_;
30 void* speex_state_; 30 void* speex_state_;
31 int speex_frame_size_; 31 int speex_frame_size_;
32 32
33 scoped_array<int16> leftover_buffer_; 33 scoped_ptr<int16[]> leftover_buffer_;
34 // We may have some left-over unencoded frames from the previous AudioPacket. 34 // We may have some left-over unencoded frames from the previous AudioPacket.
35 int leftover_frames_; 35 int leftover_frames_;
36 36
37 DISALLOW_COPY_AND_ASSIGN(AudioEncoderSpeex); 37 DISALLOW_COPY_AND_ASSIGN(AudioEncoderSpeex);
38 }; 38 };
39 39
40 } // namespace remoting 40 } // namespace remoting
41 41
42 #endif // REMOTING_CODEC_AUDIO_ENCODER_SPEEX_H_ 42 #endif // REMOTING_CODEC_AUDIO_ENCODER_SPEEX_H_
OLDNEW
« no previous file with comments | « remoting/codec/audio_encoder_opus.h ('k') | remoting/codec/codec_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698