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

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

Issue 10796074: Move VideoRenderer out of Filter heirarchy. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: GetMediaTime Created 8 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 | Annotate | Revision Log
« no previous file with comments | « media/filters/audio_file_reader.cc ('k') | media/filters/audio_renderer_impl_unittest.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) 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 "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 "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/callback_helpers.h" 11 #include "base/callback_helpers.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "media/base/filter_host.h"
14 #include "media/audio/audio_util.h" 13 #include "media/audio/audio_util.h"
15 14
16 namespace media { 15 namespace media {
17 16
18 AudioRendererImpl::AudioRendererImpl(media::AudioRendererSink* sink) 17 AudioRendererImpl::AudioRendererImpl(media::AudioRendererSink* sink)
19 : state_(kUninitialized), 18 : state_(kUninitialized),
20 pending_read_(false), 19 pending_read_(false),
21 received_end_of_stream_(false), 20 received_end_of_stream_(false),
22 rendered_end_of_stream_(false), 21 rendered_end_of_stream_(false),
23 audio_time_buffered_(kNoTimestamp()), 22 audio_time_buffered_(kNoTimestamp()),
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 case kUnderflow: 547 case kUnderflow:
549 case kRebuffering: 548 case kRebuffering:
550 case kStopped: 549 case kStopped:
551 if (status != PIPELINE_OK) 550 if (status != PIPELINE_OK)
552 error_cb_.Run(status); 551 error_cb_.Run(status);
553 return; 552 return;
554 } 553 }
555 } 554 }
556 555
557 } // namespace media 556 } // namespace media
OLDNEW
« no previous file with comments | « media/filters/audio_file_reader.cc ('k') | media/filters/audio_renderer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698