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

Side by Side Diff: media/audio/win/audio_low_latency_input_win.h

Issue 1911913002: Convert //media/audio from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix cast + windows build Created 4 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
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 // Implementation of AudioInputStream for Windows using Windows Core Audio 5 // Implementation of AudioInputStream for Windows using Windows Core Audio
6 // WASAPI for low latency capturing. 6 // WASAPI for low latency capturing.
7 // 7 //
8 // Overview of operation: 8 // Overview of operation:
9 // 9 //
10 // - An object of WASAPIAudioInputStream is created by the AudioManager 10 // - An object of WASAPIAudioInputStream is created by the AudioManager
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 197
198 // The audio engine will signal this event each time a buffer has been 198 // The audio engine will signal this event each time a buffer has been
199 // recorded. 199 // recorded.
200 base::win::ScopedHandle audio_samples_ready_event_; 200 base::win::ScopedHandle audio_samples_ready_event_;
201 201
202 // This event will be signaled when capturing shall stop. 202 // This event will be signaled when capturing shall stop.
203 base::win::ScopedHandle stop_capture_event_; 203 base::win::ScopedHandle stop_capture_event_;
204 204
205 // Extra audio bus used for storage of deinterleaved data for the OnData 205 // Extra audio bus used for storage of deinterleaved data for the OnData
206 // callback. 206 // callback.
207 scoped_ptr<media::AudioBus> audio_bus_; 207 std::unique_ptr<media::AudioBus> audio_bus_;
danakj 2016/04/22 22:47:37 include memory
dcheng 2016/04/22 23:13:21 Done.
208 208
209 DISALLOW_COPY_AND_ASSIGN(WASAPIAudioInputStream); 209 DISALLOW_COPY_AND_ASSIGN(WASAPIAudioInputStream);
210 }; 210 };
211 211
212 } // namespace media 212 } // namespace media
213 213
214 #endif // MEDIA_AUDIO_WIN_AUDIO_LOW_LATENCY_INPUT_WIN_H_ 214 #endif // MEDIA_AUDIO_WIN_AUDIO_LOW_LATENCY_INPUT_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698