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

Side by Side Diff: content/renderer/media/webrtc_audio_device_impl.h

Issue 8799011: remove the race related to output_delay_ms_ in ADM and races in the unittests. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: rebase Created 9 years 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 | « no previous file | content/renderer/media/webrtc_audio_device_impl.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 scoped_array<int16> output_buffer_; 314 scoped_array<int16> output_buffer_;
315 315
316 webrtc::AudioDeviceModule::ErrorCode last_error_; 316 webrtc::AudioDeviceModule::ErrorCode last_error_;
317 317
318 base::TimeTicks last_process_time_; 318 base::TimeTicks last_process_time_;
319 319
320 // Id of the media session to be started, it tells which device to be used 320 // Id of the media session to be started, it tells which device to be used
321 // on the input/capture side. 321 // on the input/capture side.
322 int session_id_; 322 int session_id_;
323 323
324 // Protects |recording_|. 324 // Protects |recording_|, |output_delay_ms_|, |input_delay_ms_|.
325 base::Lock lock_; 325 mutable base::Lock lock_;
326 326
327 int bytes_per_sample_; 327 int bytes_per_sample_;
328 328
329 bool initialized_; 329 bool initialized_;
330 bool playing_; 330 bool playing_;
331 bool recording_; 331 bool recording_;
332 332
333 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioDeviceImpl); 333 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioDeviceImpl);
334 }; 334 };
335 335
336 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ 336 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/webrtc_audio_device_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698