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 AudioInputStream for Windows using Windows Core Audio | 5 // Implementation of AudioInputStream for Windows using Windows Core Audio |
6 // WASAPI for low latency capturing. | 6 // WASAPI for low latency capturing. |
7 // | 7 // |
8 // Overview of operation: | 8 // Overview of operation: |
9 // | 9 // |
10 // - An object of WASAPIAudioInputStream is created by the AudioManager | 10 // - An object of WASAPIAudioInputStream is created by the AudioManager |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // | 55 // |
56 #ifndef MEDIA_AUDIO_WIN_AUDIO_LOW_LATENCY_INPUT_WIN_H_ | 56 #ifndef MEDIA_AUDIO_WIN_AUDIO_LOW_LATENCY_INPUT_WIN_H_ |
57 #define MEDIA_AUDIO_WIN_AUDIO_LOW_LATENCY_INPUT_WIN_H_ | 57 #define MEDIA_AUDIO_WIN_AUDIO_LOW_LATENCY_INPUT_WIN_H_ |
58 | 58 |
59 #include <Audioclient.h> | 59 #include <Audioclient.h> |
60 #include <MMDeviceAPI.h> | 60 #include <MMDeviceAPI.h> |
61 | 61 |
62 #include <string> | 62 #include <string> |
63 | 63 |
64 #include "base/compiler_specific.h" | 64 #include "base/compiler_specific.h" |
| 65 #include "base/macros.h" |
65 #include "base/threading/non_thread_safe.h" | 66 #include "base/threading/non_thread_safe.h" |
66 #include "base/threading/platform_thread.h" | 67 #include "base/threading/platform_thread.h" |
67 #include "base/threading/simple_thread.h" | 68 #include "base/threading/simple_thread.h" |
68 #include "base/win/scoped_co_mem.h" | 69 #include "base/win/scoped_co_mem.h" |
69 #include "base/win/scoped_com_initializer.h" | 70 #include "base/win/scoped_com_initializer.h" |
70 #include "base/win/scoped_comptr.h" | 71 #include "base/win/scoped_comptr.h" |
71 #include "base/win/scoped_handle.h" | 72 #include "base/win/scoped_handle.h" |
72 #include "media/audio/agc_audio_stream.h" | 73 #include "media/audio/agc_audio_stream.h" |
73 #include "media/audio/audio_parameters.h" | 74 #include "media/audio/audio_parameters.h" |
74 #include "media/base/media_export.h" | 75 #include "media/base/media_export.h" |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 // Extra audio bus used for storage of deinterleaved data for the OnData | 203 // Extra audio bus used for storage of deinterleaved data for the OnData |
203 // callback. | 204 // callback. |
204 scoped_ptr<media::AudioBus> audio_bus_; | 205 scoped_ptr<media::AudioBus> audio_bus_; |
205 | 206 |
206 DISALLOW_COPY_AND_ASSIGN(WASAPIAudioInputStream); | 207 DISALLOW_COPY_AND_ASSIGN(WASAPIAudioInputStream); |
207 }; | 208 }; |
208 | 209 |
209 } // namespace media | 210 } // namespace media |
210 | 211 |
211 #endif // MEDIA_AUDIO_WIN_AUDIO_LOW_LATENCY_INPUT_WIN_H_ | 212 #endif // MEDIA_AUDIO_WIN_AUDIO_LOW_LATENCY_INPUT_WIN_H_ |
OLD | NEW |