| 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 #ifndef MEDIA_FILTERS_AUDIO_RENDERER_IMPL_H_ | 5 #ifndef MEDIA_FILTERS_AUDIO_RENDERER_IMPL_H_ |
| 6 #define MEDIA_FILTERS_AUDIO_RENDERER_IMPL_H_ | 6 #define MEDIA_FILTERS_AUDIO_RENDERER_IMPL_H_ |
| 7 | 7 |
| 8 // This is the default implementation of AudioRenderer, which uses the audio | 8 // This is the default implementation of AudioRenderer, which uses the audio |
| 9 // interfaces to open an audio device. Although it cannot be used in the | 9 // interfaces to open an audio device. Although it cannot be used in the |
| 10 // sandbox, it serves as a reference implementation and can be used in other | 10 // sandbox, it serves as a reference implementation and can be used in other |
| 11 // applications such as the test player. | 11 // applications such as the test player. |
| 12 // | 12 // |
| 13 // Note: THIS IS NOT THE AUDIO RENDERER USED IN CHROME. | 13 // Note: THIS IS NOT THE AUDIO RENDERER USED IN CHROME. |
| 14 // | 14 // |
| 15 // See src/chrome/renderer/media/audio_renderer_impl.h for chrome's | 15 // See src/chrome/renderer/media/audio_renderer_impl.h for chrome's |
| 16 // implementation. | 16 // implementation. |
| 17 | 17 |
| 18 #include <deque> | 18 #include <deque> |
| 19 | 19 |
| 20 #include "base/lock.h" | |
| 21 #include "media/audio/audio_io.h" | 20 #include "media/audio/audio_io.h" |
| 22 #include "media/base/buffers.h" | 21 #include "media/base/buffers.h" |
| 23 #include "media/base/filters.h" | 22 #include "media/base/filters.h" |
| 24 #include "media/filters/audio_renderer_base.h" | 23 #include "media/filters/audio_renderer_base.h" |
| 25 | 24 |
| 26 namespace media { | 25 namespace media { |
| 27 | 26 |
| 28 class AudioRendererImpl : public AudioRendererBase, | 27 class AudioRendererImpl : public AudioRendererBase, |
| 29 public AudioOutputStream::AudioSourceCallback { | 28 public AudioOutputStream::AudioSourceCallback { |
| 30 public: | 29 public: |
| (...skipping 21 matching lines...) Expand all Loading... |
| 52 // Audio output stream device. | 51 // Audio output stream device. |
| 53 AudioOutputStream* stream_; | 52 AudioOutputStream* stream_; |
| 54 int bytes_per_second_; | 53 int bytes_per_second_; |
| 55 | 54 |
| 56 DISALLOW_COPY_AND_ASSIGN(AudioRendererImpl); | 55 DISALLOW_COPY_AND_ASSIGN(AudioRendererImpl); |
| 57 }; | 56 }; |
| 58 | 57 |
| 59 } // namespace media | 58 } // namespace media |
| 60 | 59 |
| 61 #endif // MEDIA_FILTERS_AUDIO_RENDERER_IMPL_H_ | 60 #endif // MEDIA_FILTERS_AUDIO_RENDERER_IMPL_H_ |
| OLD | NEW |