| 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 // Implementation of AudioOutputStream for Windows using Windows Core Audio | 5 // Implementation of AudioOutputStream for Windows using Windows Core Audio |
| 6 // WASAPI for low latency rendering. | 6 // WASAPI for low latency rendering. |
| 7 // | 7 // |
| 8 // Overview of operation and performance: | 8 // Overview of operation and performance: |
| 9 // | 9 // |
| 10 // - An object of WASAPIAudioOutputStream is created by the AudioManager | 10 // - An object of WASAPIAudioOutputStream is created by the AudioManager |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 #include "base/compiler_specific.h" | 103 #include "base/compiler_specific.h" |
| 104 #include "base/macros.h" | 104 #include "base/macros.h" |
| 105 #include "base/memory/scoped_ptr.h" | 105 #include "base/memory/scoped_ptr.h" |
| 106 #include "base/threading/platform_thread.h" | 106 #include "base/threading/platform_thread.h" |
| 107 #include "base/threading/simple_thread.h" | 107 #include "base/threading/simple_thread.h" |
| 108 #include "base/win/scoped_co_mem.h" | 108 #include "base/win/scoped_co_mem.h" |
| 109 #include "base/win/scoped_com_initializer.h" | 109 #include "base/win/scoped_com_initializer.h" |
| 110 #include "base/win/scoped_comptr.h" | 110 #include "base/win/scoped_comptr.h" |
| 111 #include "base/win/scoped_handle.h" | 111 #include "base/win/scoped_handle.h" |
| 112 #include "media/audio/audio_io.h" | 112 #include "media/audio/audio_io.h" |
| 113 #include "media/audio/audio_parameters.h" | 113 #include "media/base/audio_parameters.h" |
| 114 #include "media/base/media_export.h" | 114 #include "media/base/media_export.h" |
| 115 | 115 |
| 116 namespace media { | 116 namespace media { |
| 117 | 117 |
| 118 class AudioManagerWin; | 118 class AudioManagerWin; |
| 119 | 119 |
| 120 // AudioOutputStream implementation using Windows Core Audio APIs. | 120 // AudioOutputStream implementation using Windows Core Audio APIs. |
| 121 class MEDIA_EXPORT WASAPIAudioOutputStream : | 121 class MEDIA_EXPORT WASAPIAudioOutputStream : |
| 122 public AudioOutputStream, | 122 public AudioOutputStream, |
| 123 public base::DelegateSimpleThread::Delegate { | 123 public base::DelegateSimpleThread::Delegate { |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 scoped_ptr<AudioBus> audio_bus_; | 243 scoped_ptr<AudioBus> audio_bus_; |
| 244 | 244 |
| 245 base::win::ScopedComPtr<IAudioClock> audio_clock_; | 245 base::win::ScopedComPtr<IAudioClock> audio_clock_; |
| 246 | 246 |
| 247 DISALLOW_COPY_AND_ASSIGN(WASAPIAudioOutputStream); | 247 DISALLOW_COPY_AND_ASSIGN(WASAPIAudioOutputStream); |
| 248 }; | 248 }; |
| 249 | 249 |
| 250 } // namespace media | 250 } // namespace media |
| 251 | 251 |
| 252 #endif // MEDIA_AUDIO_WIN_AUDIO_LOW_LATENCY_OUTPUT_WIN_H_ | 252 #endif // MEDIA_AUDIO_WIN_AUDIO_LOW_LATENCY_OUTPUT_WIN_H_ |
| OLD | NEW |