| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 #include "base/compiler_specific.h" | 66 #include "base/compiler_specific.h" |
| 67 #include "base/macros.h" | 67 #include "base/macros.h" |
| 68 #include "base/threading/non_thread_safe.h" | 68 #include "base/threading/non_thread_safe.h" |
| 69 #include "base/threading/platform_thread.h" | 69 #include "base/threading/platform_thread.h" |
| 70 #include "base/threading/simple_thread.h" | 70 #include "base/threading/simple_thread.h" |
| 71 #include "base/win/scoped_co_mem.h" | 71 #include "base/win/scoped_co_mem.h" |
| 72 #include "base/win/scoped_com_initializer.h" | 72 #include "base/win/scoped_com_initializer.h" |
| 73 #include "base/win/scoped_comptr.h" | 73 #include "base/win/scoped_comptr.h" |
| 74 #include "base/win/scoped_handle.h" | 74 #include "base/win/scoped_handle.h" |
| 75 #include "media/audio/agc_audio_stream.h" | 75 #include "media/audio/agc_audio_stream.h" |
| 76 #include "media/audio/audio_parameters.h" | 76 #include "media/base/audio_parameters.h" |
| 77 #include "media/base/media_export.h" | 77 #include "media/base/media_export.h" |
| 78 | 78 |
| 79 namespace media { | 79 namespace media { |
| 80 | 80 |
| 81 class AudioBus; | 81 class AudioBus; |
| 82 class AudioManagerWin; | 82 class AudioManagerWin; |
| 83 | 83 |
| 84 // AudioInputStream implementation using Windows Core Audio APIs. | 84 // AudioInputStream implementation using Windows Core Audio APIs. |
| 85 class MEDIA_EXPORT WASAPIAudioInputStream | 85 class MEDIA_EXPORT WASAPIAudioInputStream |
| 86 : public AgcAudioStream<AudioInputStream>, | 86 : public AgcAudioStream<AudioInputStream>, |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 // Extra audio bus used for storage of deinterleaved data for the OnData | 205 // Extra audio bus used for storage of deinterleaved data for the OnData |
| 206 // callback. | 206 // callback. |
| 207 scoped_ptr<media::AudioBus> audio_bus_; | 207 scoped_ptr<media::AudioBus> audio_bus_; |
| 208 | 208 |
| 209 DISALLOW_COPY_AND_ASSIGN(WASAPIAudioInputStream); | 209 DISALLOW_COPY_AND_ASSIGN(WASAPIAudioInputStream); |
| 210 }; | 210 }; |
| 211 | 211 |
| 212 } // namespace media | 212 } // namespace media |
| 213 | 213 |
| 214 #endif // MEDIA_AUDIO_WIN_AUDIO_LOW_LATENCY_INPUT_WIN_H_ | 214 #endif // MEDIA_AUDIO_WIN_AUDIO_LOW_LATENCY_INPUT_WIN_H_ |
| OLD | NEW |