| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 24 matching lines...) Expand all Loading... |
| 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 CHROME_RENDERER_MEDIA_AUDIO_RENDERER_IMPL_H_ | 37 #ifndef CHROME_RENDERER_MEDIA_AUDIO_RENDERER_IMPL_H_ |
| 38 #define CHROME_RENDERER_MEDIA_AUDIO_RENDERER_IMPL_H_ | 38 #define CHROME_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/scoped_ptr.h" | 42 #include "base/scoped_ptr.h" |
| 43 #include "base/lock.h" | 43 #include "base/lock.h" |
| 44 #include "base/shared_memory.h" | 44 #include "base/shared_memory.h" |
| 45 #include "base/waitable_event.h" | |
| 46 #include "chrome/renderer/audio_message_filter.h" | 45 #include "chrome/renderer/audio_message_filter.h" |
| 47 #include "media/audio/audio_io.h" | 46 #include "media/audio/audio_io.h" |
| 48 #include "media/base/factory.h" | 47 #include "media/base/factory.h" |
| 49 #include "media/base/filters.h" | 48 #include "media/base/filters.h" |
| 50 #include "media/filters/audio_renderer_base.h" | 49 #include "media/filters/audio_renderer_base.h" |
| 51 | 50 |
| 52 class AudioMessageFilter; | 51 class AudioMessageFilter; |
| 53 | 52 |
| 54 class AudioRendererImpl : public media::AudioRendererBase, | 53 class AudioRendererImpl : public media::AudioRendererBase, |
| 55 public AudioMessageFilter::Delegate, | 54 public AudioMessageFilter::Delegate, |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 // State variables for prerolling. | 166 // State variables for prerolling. |
| 168 bool prerolling_; | 167 bool prerolling_; |
| 169 | 168 |
| 170 // Remaining bytes for prerolling to complete. | 169 // Remaining bytes for prerolling to complete. |
| 171 uint32 preroll_bytes_; | 170 uint32 preroll_bytes_; |
| 172 | 171 |
| 173 DISALLOW_COPY_AND_ASSIGN(AudioRendererImpl); | 172 DISALLOW_COPY_AND_ASSIGN(AudioRendererImpl); |
| 174 }; | 173 }; |
| 175 | 174 |
| 176 #endif // CHROME_RENDERER_MEDIA_AUDIO_RENDERER_IMPL_H_ | 175 #endif // CHROME_RENDERER_MEDIA_AUDIO_RENDERER_IMPL_H_ |
| OLD | NEW |