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

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

Issue 367923004: Turn audio ducking on by default on Windows again. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 6 years, 5 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 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_LOCAL_AUDIO_RENDERER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_LOCAL_AUDIO_RENDERER_H_
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_LOCAL_AUDIO_RENDERER_H_ 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_LOCAL_AUDIO_RENDERER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 // Stores last time a render callback was received. The time difference 129 // Stores last time a render callback was received. The time difference
130 // between a new time stamp and this value can be used to derive the 130 // between a new time stamp and this value can be used to derive the
131 // total render time. 131 // total render time.
132 base::TimeTicks last_render_time_; 132 base::TimeTicks last_render_time_;
133 133
134 // Keeps track of total time audio has been rendered. 134 // Keeps track of total time audio has been rendered.
135 base::TimeDelta total_render_time_; 135 base::TimeDelta total_render_time_;
136 136
137 // The audio parameters of the capture source. 137 // The audio parameters of the capture source.
138 // Must only be touched on the main thread.
no longer working on chromium 2014/07/08 12:38:55 thanks.
138 media::AudioParameters source_params_; 139 media::AudioParameters source_params_;
139 140
140 // The audio parameters used by the sink. 141 // The audio parameters used by the sink.
142 // Must only be touched on the main thread.
141 media::AudioParameters sink_params_; 143 media::AudioParameters sink_params_;
142 144
143 // Set when playing, cleared when paused. 145 // Set when playing, cleared when paused.
144 bool playing_; 146 bool playing_;
145 147
146 // Protects |loopback_fifo_|, |playing_| and |sink_|. 148 // Protects |loopback_fifo_|, |playing_| and |sink_|.
147 mutable base::Lock thread_lock_; 149 mutable base::Lock thread_lock_;
148 150
149 // The preferred buffer size provided via the ctor. 151 // The preferred buffer size provided via the ctor.
150 const int frames_per_buffer_; 152 const int frames_per_buffer_;
(...skipping 10 matching lines...) Expand all
161 163
162 // Used to DCHECK that some methods are called on the capture audio thread. 164 // Used to DCHECK that some methods are called on the capture audio thread.
163 base::ThreadChecker capture_thread_checker_; 165 base::ThreadChecker capture_thread_checker_;
164 166
165 DISALLOW_COPY_AND_ASSIGN(WebRtcLocalAudioRenderer); 167 DISALLOW_COPY_AND_ASSIGN(WebRtcLocalAudioRenderer);
166 }; 168 };
167 169
168 } // namespace content 170 } // namespace content
169 171
170 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_LOCAL_AUDIO_RENDERER_H_ 172 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_LOCAL_AUDIO_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698