| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
| 3 // LICENSE file. | 3 // 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // Called from AudioRendererBase for stop event. | 84 // Called from AudioRendererBase for stop event. |
| 85 // | 85 // |
| 86 // Audio decoder thread (If there's one.) | 86 // Audio decoder thread (If there's one.) |
| 87 // \-- OnReadComplete() | 87 // \-- OnReadComplete() |
| 88 // A raw PCM audio packet buffer is received here, this method is called | 88 // A raw PCM audio packet buffer is received here, this method is called |
| 89 // from pipeline thread if audio decoder thread does not exist. | 89 // from pipeline thread if audio decoder thread does not exist. |
| 90 | 90 |
| 91 #ifndef CHROME_RENDERER_MEDIA_AUDIO_RENDERER_IMPL_H_ | 91 #ifndef CHROME_RENDERER_MEDIA_AUDIO_RENDERER_IMPL_H_ |
| 92 #define CHROME_RENDERER_MEDIA_AUDIO_RENDERER_IMPL_H_ | 92 #define CHROME_RENDERER_MEDIA_AUDIO_RENDERER_IMPL_H_ |
| 93 | 93 |
| 94 #include "base/scoped_ptr.h" |
| 94 #include "base/lock.h" | 95 #include "base/lock.h" |
| 95 #include "base/shared_memory.h" | 96 #include "base/shared_memory.h" |
| 96 #include "base/waitable_event.h" | 97 #include "base/waitable_event.h" |
| 97 #include "chrome/renderer/audio_message_filter.h" | 98 #include "chrome/renderer/audio_message_filter.h" |
| 98 #include "media/audio/audio_output.h" | 99 #include "media/audio/audio_output.h" |
| 99 #include "media/base/factory.h" | 100 #include "media/base/factory.h" |
| 100 #include "media/base/filters.h" | 101 #include "media/base/filters.h" |
| 101 #include "media/filters/audio_renderer_base.h" | 102 #include "media/filters/audio_renderer_base.h" |
| 102 | 103 |
| 103 class AudioMessageFilter; | 104 class AudioMessageFilter; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 | 169 |
| 169 Lock lock_; | 170 Lock lock_; |
| 170 bool stopped_; | 171 bool stopped_; |
| 171 float playback_rate_; | 172 float playback_rate_; |
| 172 base::WaitableEvent packet_request_event_; | 173 base::WaitableEvent packet_request_event_; |
| 173 | 174 |
| 174 DISALLOW_COPY_AND_ASSIGN(AudioRendererImpl); | 175 DISALLOW_COPY_AND_ASSIGN(AudioRendererImpl); |
| 175 }; | 176 }; |
| 176 | 177 |
| 177 #endif // CHROME_RENDERER_MEDIA_AUDIO_RENDERER_IMPL_H_ | 178 #endif // CHROME_RENDERER_MEDIA_AUDIO_RENDERER_IMPL_H_ |
| OLD | NEW |