| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 // o ~3.3333ms @ 48kHz <=> 160 audio frames per buffer. | 88 // o ~3.3333ms @ 48kHz <=> 160 audio frames per buffer. |
| 89 // o ~3.6281ms @ 44.1kHz <=> 160 audio frames per buffer. | 89 // o ~3.6281ms @ 44.1kHz <=> 160 audio frames per buffer. |
| 90 // - See http://msdn.microsoft.com/en-us/library/windows/desktop/dd370844(v=vs.8
5).aspx | 90 // - See http://msdn.microsoft.com/en-us/library/windows/desktop/dd370844(v=vs.8
5).aspx |
| 91 // for more details. | 91 // for more details. |
| 92 | 92 |
| 93 #ifndef MEDIA_AUDIO_WIN_AUDIO_LOW_LATENCY_OUTPUT_WIN_H_ | 93 #ifndef MEDIA_AUDIO_WIN_AUDIO_LOW_LATENCY_OUTPUT_WIN_H_ |
| 94 #define MEDIA_AUDIO_WIN_AUDIO_LOW_LATENCY_OUTPUT_WIN_H_ | 94 #define MEDIA_AUDIO_WIN_AUDIO_LOW_LATENCY_OUTPUT_WIN_H_ |
| 95 | 95 |
| 96 #include <Audioclient.h> | 96 #include <Audioclient.h> |
| 97 #include <MMDeviceAPI.h> | 97 #include <MMDeviceAPI.h> |
| 98 #include <stddef.h> |
| 99 #include <stdint.h> |
| 98 | 100 |
| 99 #include <string> | 101 #include <string> |
| 100 | 102 |
| 101 #include "base/compiler_specific.h" | 103 #include "base/compiler_specific.h" |
| 102 #include "base/macros.h" | 104 #include "base/macros.h" |
| 103 #include "base/memory/scoped_ptr.h" | 105 #include "base/memory/scoped_ptr.h" |
| 104 #include "base/threading/platform_thread.h" | 106 #include "base/threading/platform_thread.h" |
| 105 #include "base/threading/simple_thread.h" | 107 #include "base/threading/simple_thread.h" |
| 106 #include "base/win/scoped_co_mem.h" | 108 #include "base/win/scoped_co_mem.h" |
| 107 #include "base/win/scoped_com_initializer.h" | 109 #include "base/win/scoped_com_initializer.h" |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 scoped_ptr<AudioBus> audio_bus_; | 243 scoped_ptr<AudioBus> audio_bus_; |
| 242 | 244 |
| 243 base::win::ScopedComPtr<IAudioClock> audio_clock_; | 245 base::win::ScopedComPtr<IAudioClock> audio_clock_; |
| 244 | 246 |
| 245 DISALLOW_COPY_AND_ASSIGN(WASAPIAudioOutputStream); | 247 DISALLOW_COPY_AND_ASSIGN(WASAPIAudioOutputStream); |
| 246 }; | 248 }; |
| 247 | 249 |
| 248 } // namespace media | 250 } // namespace media |
| 249 | 251 |
| 250 #endif // MEDIA_AUDIO_WIN_AUDIO_LOW_LATENCY_OUTPUT_WIN_H_ | 252 #endif // MEDIA_AUDIO_WIN_AUDIO_LOW_LATENCY_OUTPUT_WIN_H_ |
| OLD | NEW |