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

Side by Side Diff: trunk/src/content/browser/renderer_host/media/audio_sync_reader.cc

Issue 487543002: Revert 290359 "Remove AudioBuffersState class." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 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 "content/browser/renderer_host/media/audio_sync_reader.h" 5 #include "content/browser/renderer_host/media/audio_sync_reader.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
11 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram.h"
12 #include "content/public/common/content_switches.h" 12 #include "content/public/common/content_switches.h"
13 #include "media/audio/audio_buffers_state.h"
13 #include "media/audio/audio_parameters.h" 14 #include "media/audio/audio_parameters.h"
14 15
15 using media::AudioBus; 16 using media::AudioBus;
16 17
17 namespace content { 18 namespace content {
18 19
19 AudioSyncReader::AudioSyncReader(base::SharedMemory* shared_memory, 20 AudioSyncReader::AudioSyncReader(base::SharedMemory* shared_memory,
20 const media::AudioParameters& params) 21 const media::AudioParameters& params)
21 : shared_memory_(shared_memory), 22 : shared_memory_(shared_memory),
22 mute_audio_(CommandLine::ForCurrentProcess()->HasSwitch( 23 mute_audio_(CommandLine::ForCurrentProcess()->HasSwitch(
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 base::TimeDelta::FromMilliseconds(1), 147 base::TimeDelta::FromMilliseconds(1),
147 base::TimeDelta::FromMilliseconds(1000), 148 base::TimeDelta::FromMilliseconds(1000),
148 50); 149 50);
149 return false; 150 return false;
150 } 151 }
151 152
152 return true; 153 return true;
153 } 154 }
154 155
155 } // namespace content 156 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698