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

Unified Diff: remoting/codec/audio_encoder_opus.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/client/audio_player_unittest.cc ('k') | remoting/codec/audio_encoder_speex.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/codec/audio_encoder_opus.h
diff --git a/remoting/codec/audio_encoder_opus.h b/remoting/codec/audio_encoder_opus.h
index 7f610d4bd1e4e3ff4299362d94c7014c2eac8666..6799836d6bc0ed0bf75003e42c781bc8dbbd8315 100644
--- a/remoting/codec/audio_encoder_opus.h
+++ b/remoting/codec/audio_encoder_opus.h
@@ -43,7 +43,7 @@ class AudioEncoderOpus : public AudioEncoder {
int frame_size_;
scoped_ptr<media::MultiChannelResampler> resampler_;
- scoped_array<char> resample_buffer_;
+ scoped_ptr<char[]> resample_buffer_;
scoped_ptr<media::AudioBus> resampler_bus_;
// Used to pass packet to the FetchBytesToResampler() callback.
@@ -52,7 +52,7 @@ class AudioEncoderOpus : public AudioEncoder {
int resampling_data_pos_;
// Left-over unencoded samples from the previous AudioPacket.
- scoped_array<int16> leftover_buffer_;
+ scoped_ptr<int16[]> leftover_buffer_;
int leftover_buffer_size_;
int leftover_samples_;
« no previous file with comments | « remoting/client/audio_player_unittest.cc ('k') | remoting/codec/audio_encoder_speex.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698