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

Side by Side Diff: media/filters/audio_renderer_impl.cc

Issue 3192017: Revert 57254 - Share one thread between all AudioOutputControllers instead of... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 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
« no previous file with comments | « media/audio/win/audio_manager_win.cc ('k') | media/media.gyp » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/filters/audio_renderer_impl.h" 5 #include "media/filters/audio_renderer_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include "media/base/filter_host.h" 9 #include "media/base/filter_host.h"
10 #include "media/audio/audio_manager.h"
11 10
12 namespace media { 11 namespace media {
13 12
14 // We'll try to fill 4096 samples per buffer, which is roughly ~92ms of audio 13 // We'll try to fill 4096 samples per buffer, which is roughly ~92ms of audio
15 // data for a 44.1kHz audio source. 14 // data for a 44.1kHz audio source.
16 static const size_t kSamplesPerBuffer = 8*1024; 15 static const size_t kSamplesPerBuffer = 8*1024;
17 16
18 AudioRendererImpl::AudioRendererImpl() 17 AudioRendererImpl::AudioRendererImpl()
19 : AudioRendererBase(), 18 : AudioRendererBase(),
20 stream_(NULL), 19 stream_(NULL),
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 } 101 }
103 return true; 102 return true;
104 } 103 }
105 104
106 void AudioRendererImpl::OnStop() { 105 void AudioRendererImpl::OnStop() {
107 if (stream_) 106 if (stream_)
108 stream_->Stop(); 107 stream_->Stop();
109 } 108 }
110 109
111 } // namespace media 110 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/win/audio_manager_win.cc ('k') | media/media.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698