Chromium Code Reviews| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 200 // recorded. | 200 // recorded. |
| 201 base::win::ScopedHandle audio_samples_ready_event_; | 201 base::win::ScopedHandle audio_samples_ready_event_; |
| 202 | 202 |
| 203 // This event will be signaled when capturing shall stop. | 203 // This event will be signaled when capturing shall stop. |
| 204 base::win::ScopedHandle stop_capture_event_; | 204 base::win::ScopedHandle stop_capture_event_; |
| 205 | 205 |
| 206 // Extra audio bus used for storage of deinterleaved data for the OnData | 206 // Extra audio bus used for storage of deinterleaved data for the OnData |
| 207 // callback. | 207 // callback. |
| 208 std::unique_ptr<media::AudioBus> audio_bus_; | 208 std::unique_ptr<media::AudioBus> audio_bus_; |
| 209 | 209 |
| 210 // True, if we have muted the system audio for the stream capturing. | |
|
henrika (OOO until Aug 14)
2016/07/25 08:38:19
Extend the comments here and make it clear that th
qiangchen
2016/07/25 22:42:22
Done.
| |
| 211 bool mute_done_; | |
| 212 | |
| 210 DISALLOW_COPY_AND_ASSIGN(WASAPIAudioInputStream); | 213 DISALLOW_COPY_AND_ASSIGN(WASAPIAudioInputStream); |
| 211 }; | 214 }; |
| 212 | 215 |
| 213 } // namespace media | 216 } // namespace media |
| 214 | 217 |
| 215 #endif // MEDIA_AUDIO_WIN_AUDIO_LOW_LATENCY_INPUT_WIN_H_ | 218 #endif // MEDIA_AUDIO_WIN_AUDIO_LOW_LATENCY_INPUT_WIN_H_ |
| OLD | NEW |