OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Audio rendering unit utilizing audio output stream provided by browser | 5 // Audio rendering unit utilizing audio output stream provided by browser |
6 // process through IPC. | 6 // process through IPC. |
7 // | 7 // |
8 // Relationship of classes. | 8 // Relationship of classes. |
9 // | 9 // |
10 // AudioRendererHost AudioRendererImpl | 10 // AudioRendererHost AudioRendererImpl |
(...skipping 16 matching lines...) Expand all Loading... | |
27 // This class lives inside three threads during it's lifetime, namely: | 27 // This class lives inside three threads during it's lifetime, namely: |
28 // 1. IO thread. | 28 // 1. IO thread. |
29 // The thread within which this class receives all the IPC messages and | 29 // The thread within which this class receives all the IPC messages and |
30 // IPC communications can only happen in this thread. | 30 // IPC communications can only happen in this thread. |
31 // 2. Pipeline thread | 31 // 2. Pipeline thread |
32 // Initialization of filter and proper stopping of filters happens here. | 32 // Initialization of filter and proper stopping of filters happens here. |
33 // Properties of this filter is also set in this thread. | 33 // Properties of this filter is also set in this thread. |
34 // 3. Audio decoder thread (If there's one.) | 34 // 3. Audio decoder thread (If there's one.) |
35 // Responsible for decoding audio data and gives raw PCM data to this object. | 35 // Responsible for decoding audio data and gives raw PCM data to this object. |
36 | 36 |
37 #ifndef CONTENT_RENDERER_MEDIA_AUDIO_RENDERER_IMPL_H_ | 37 #ifndef CONTENT_RENDERER_MEDIA_AUDIO_RENDERER_IMPL_H_ |
scherkus (not reviewing)
2011/06/13 18:15:45
update header guard
| |
38 #define CONTENT_RENDERER_MEDIA_AUDIO_RENDERER_IMPL_H_ | 38 #define CONTENT_RENDERER_MEDIA_AUDIO_RENDERER_IMPL_H_ |
39 #pragma once | 39 #pragma once |
40 | 40 |
41 #include "base/gtest_prod_util.h" | 41 #include "base/gtest_prod_util.h" |
42 #include "base/memory/scoped_ptr.h" | 42 #include "base/memory/scoped_ptr.h" |
43 #include "base/message_loop.h" | 43 #include "base/message_loop.h" |
44 #include "base/shared_memory.h" | 44 #include "base/shared_memory.h" |
45 #include "base/synchronization/lock.h" | 45 #include "base/synchronization/lock.h" |
46 #include "content/renderer/audio_message_filter.h" | 46 #include "content/renderer/media/audio_message_filter.h" |
47 #include "media/audio/audio_io.h" | 47 #include "media/audio/audio_io.h" |
48 #include "media/audio/audio_manager.h" | 48 #include "media/audio/audio_manager.h" |
49 #include "media/base/filters.h" | 49 #include "media/base/filters.h" |
50 #include "media/filters/audio_renderer_base.h" | 50 #include "media/filters/audio_renderer_base.h" |
51 | 51 |
52 class AudioMessageFilter; | 52 class AudioMessageFilter; |
53 | 53 |
54 class AudioRendererImpl : public media::AudioRendererBase, | 54 class AudioRendererImpl : public media::AudioRendererBase, |
55 public AudioMessageFilter::Delegate, | 55 public AudioMessageFilter::Delegate, |
56 public MessageLoop::DestructionObserver { | 56 public MessageLoop::DestructionObserver { |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
147 // State variables for prerolling. | 147 // State variables for prerolling. |
148 bool prerolling_; | 148 bool prerolling_; |
149 | 149 |
150 // Remaining bytes for prerolling to complete. | 150 // Remaining bytes for prerolling to complete. |
151 uint32 preroll_bytes_; | 151 uint32 preroll_bytes_; |
152 | 152 |
153 DISALLOW_COPY_AND_ASSIGN(AudioRendererImpl); | 153 DISALLOW_COPY_AND_ASSIGN(AudioRendererImpl); |
154 }; | 154 }; |
155 | 155 |
156 #endif // CONTENT_RENDERER_MEDIA_AUDIO_RENDERER_IMPL_H_ | 156 #endif // CONTENT_RENDERER_MEDIA_AUDIO_RENDERER_IMPL_H_ |
OLD | NEW |