OLD | NEW |
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 Loading... |
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 |
OLD | NEW |