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

Side by Side Diff: media/audio/win/audio_unified_win.cc

Issue 16943003: Rewrite scoped_ptr<T>(NULL) to use the default ctor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/win/audio_unified_win.h" 5 #include "media/audio/win/audio_unified_win.h"
6 6
7 #include <Functiondiscoverykeys_devpkey.h> 7 #include <Functiondiscoverykeys_devpkey.h>
8 8
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #ifndef NDEBUG 10 #ifndef NDEBUG
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 WASAPIUnifiedStream::WASAPIUnifiedStream(AudioManagerWin* manager, 111 WASAPIUnifiedStream::WASAPIUnifiedStream(AudioManagerWin* manager,
112 const AudioParameters& params, 112 const AudioParameters& params,
113 const std::string& input_device_id) 113 const std::string& input_device_id)
114 : creating_thread_id_(base::PlatformThread::CurrentId()), 114 : creating_thread_id_(base::PlatformThread::CurrentId()),
115 manager_(manager), 115 manager_(manager),
116 params_(params), 116 params_(params),
117 input_channels_(params.input_channels()), 117 input_channels_(params.input_channels()),
118 output_channels_(params.channels()), 118 output_channels_(params.channels()),
119 input_device_id_(input_device_id), 119 input_device_id_(input_device_id),
120 share_mode_(CoreAudioUtil::GetShareMode()), 120 share_mode_(CoreAudioUtil::GetShareMode()),
121 audio_io_thread_(NULL),
122 opened_(false), 121 opened_(false),
123 volume_(1.0), 122 volume_(1.0),
124 output_buffer_size_frames_(0), 123 output_buffer_size_frames_(0),
125 input_buffer_size_frames_(0), 124 input_buffer_size_frames_(0),
126 endpoint_render_buffer_size_frames_(0), 125 endpoint_render_buffer_size_frames_(0),
127 endpoint_capture_buffer_size_frames_(0), 126 endpoint_capture_buffer_size_frames_(0),
128 num_written_frames_(0), 127 num_written_frames_(0),
129 total_delay_ms_(0.0), 128 total_delay_ms_(0.0),
130 total_delay_bytes_(0), 129 total_delay_bytes_(0),
131 source_(NULL), 130 source_(NULL),
(...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after
974 void WASAPIUnifiedStream::StopAndJoinThread(HRESULT err) { 973 void WASAPIUnifiedStream::StopAndJoinThread(HRESULT err) {
975 CHECK(GetCurrentThreadId() == creating_thread_id_); 974 CHECK(GetCurrentThreadId() == creating_thread_id_);
976 DCHECK(audio_io_thread_.get()); 975 DCHECK(audio_io_thread_.get());
977 SetEvent(stop_streaming_event_.Get()); 976 SetEvent(stop_streaming_event_.Get());
978 audio_io_thread_->Join(); 977 audio_io_thread_->Join();
979 audio_io_thread_.reset(); 978 audio_io_thread_.reset();
980 HandleError(err); 979 HandleError(err);
981 } 980 }
982 981
983 } // namespace media 982 } // namespace media
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_drag_win.cc ('k') | net/http/http_auth_handler_ntlm_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698