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 #ifndef MEDIA_BASE_AUDIO_RENDERER_MIXER_H_ | 5 #ifndef MEDIA_BASE_AUDIO_RENDERER_MIXER_H_ |
6 #define MEDIA_BASE_AUDIO_RENDERER_MIXER_H_ | 6 #define MEDIA_BASE_AUDIO_RENDERER_MIXER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
11 #include "base/time.h" | 11 #include "base/time/time.h" |
12 #include "media/base/audio_converter.h" | 12 #include "media/base/audio_converter.h" |
13 #include "media/base/audio_renderer_sink.h" | 13 #include "media/base/audio_renderer_sink.h" |
14 | 14 |
15 namespace media { | 15 namespace media { |
16 | 16 |
17 // Mixes a set of AudioConverter::InputCallbacks into a single output stream | 17 // Mixes a set of AudioConverter::InputCallbacks into a single output stream |
18 // which is funneled into a single shared AudioRendererSink; saving a bundle | 18 // which is funneled into a single shared AudioRendererSink; saving a bundle |
19 // on renderer side resources. | 19 // on renderer side resources. |
20 class MEDIA_EXPORT AudioRendererMixer | 20 class MEDIA_EXPORT AudioRendererMixer |
21 : NON_EXPORTED_BASE(public AudioRendererSink::RenderCallback) { | 21 : NON_EXPORTED_BASE(public AudioRendererSink::RenderCallback) { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 base::TimeDelta pause_delay_; | 58 base::TimeDelta pause_delay_; |
59 base::TimeTicks last_play_time_; | 59 base::TimeTicks last_play_time_; |
60 bool playing_; | 60 bool playing_; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(AudioRendererMixer); | 62 DISALLOW_COPY_AND_ASSIGN(AudioRendererMixer); |
63 }; | 63 }; |
64 | 64 |
65 } // namespace media | 65 } // namespace media |
66 | 66 |
67 #endif // MEDIA_BASE_AUDIO_RENDERER_MIXER_H_ | 67 #endif // MEDIA_BASE_AUDIO_RENDERER_MIXER_H_ |
OLD | NEW |