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

Side by Side Diff: media/audio/virtual_audio_input_stream.cc

Issue 16297002: Update media/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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
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 #include "media/audio/virtual_audio_input_stream.h" 5 #include "media/audio/virtual_audio_input_stream.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 const AfterCloseCallback& after_close_cb) 53 const AfterCloseCallback& after_close_cb)
54 : message_loop_(message_loop), 54 : message_loop_(message_loop),
55 after_close_cb_(after_close_cb), 55 after_close_cb_(after_close_cb),
56 callback_(NULL), 56 callback_(NULL),
57 buffer_(new uint8[params.GetBytesPerBuffer()]), 57 buffer_(new uint8[params.GetBytesPerBuffer()]),
58 params_(params), 58 params_(params),
59 mixer_(params_, params_, false), 59 mixer_(params_, params_, false),
60 num_attached_output_streams_(0), 60 num_attached_output_streams_(0),
61 fake_consumer_(message_loop_, params_) { 61 fake_consumer_(message_loop_, params_) {
62 DCHECK(params_.IsValid()); 62 DCHECK(params_.IsValid());
63 DCHECK(message_loop_); 63 DCHECK(message_loop_.get());
64 } 64 }
65 65
66 VirtualAudioInputStream::~VirtualAudioInputStream() { 66 VirtualAudioInputStream::~VirtualAudioInputStream() {
67 for (AudioConvertersMap::iterator it = converters_.begin(); 67 for (AudioConvertersMap::iterator it = converters_.begin();
68 it != converters_.end(); ++it) { 68 it != converters_.end(); ++it) {
69 delete it->second; 69 delete it->second;
70 } 70 }
71 71
72 DCHECK_EQ(0, num_attached_output_streams_); 72 DCHECK_EQ(0, num_attached_output_streams_);
73 } 73 }
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 return 1.0; 163 return 1.0;
164 } 164 }
165 165
166 void VirtualAudioInputStream::SetAutomaticGainControl(bool enabled) {} 166 void VirtualAudioInputStream::SetAutomaticGainControl(bool enabled) {}
167 167
168 bool VirtualAudioInputStream::GetAutomaticGainControl() { 168 bool VirtualAudioInputStream::GetAutomaticGainControl() {
169 return false; 169 return false;
170 } 170 }
171 171
172 } // namespace media 172 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/audio_output_proxy_unittest.cc ('k') | media/audio/virtual_audio_input_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698