| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 // OnData() callback. | 145 // OnData() callback. |
| 146 size_t packet_size_frames_; | 146 size_t packet_size_frames_; |
| 147 | 147 |
| 148 // Size in bytes of each audio packet. | 148 // Size in bytes of each audio packet. |
| 149 size_t packet_size_bytes_; | 149 size_t packet_size_bytes_; |
| 150 | 150 |
| 151 // Length of the audio endpoint buffer. | 151 // Length of the audio endpoint buffer. |
| 152 uint32_t endpoint_buffer_size_frames_; | 152 uint32_t endpoint_buffer_size_frames_; |
| 153 | 153 |
| 154 // Contains the unique name of the selected endpoint device. | 154 // Contains the unique name of the selected endpoint device. |
| 155 // Note that AudioManagerBase::kDefaultDeviceId represents the default | 155 // Note that AudioDeviceDescription::kDefaultDeviceId represents the default |
| 156 // device role and is not a valid ID as such. | 156 // device role and is not a valid ID as such. |
| 157 std::string device_id_; | 157 std::string device_id_; |
| 158 | 158 |
| 159 // Conversion factor used in delay-estimation calculations. | 159 // Conversion factor used in delay-estimation calculations. |
| 160 // Converts a raw performance counter value to 100-nanosecond unit. | 160 // Converts a raw performance counter value to 100-nanosecond unit. |
| 161 double perf_count_to_100ns_units_; | 161 double perf_count_to_100ns_units_; |
| 162 | 162 |
| 163 // Conversion factor used in delay-estimation calculations. | 163 // Conversion factor used in delay-estimation calculations. |
| 164 // Converts from milliseconds to audio frames. | 164 // Converts from milliseconds to audio frames. |
| 165 double ms_to_frame_count_; | 165 double ms_to_frame_count_; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 DISALLOW_COPY_AND_ASSIGN(WASAPIAudioInputStream); | 210 DISALLOW_COPY_AND_ASSIGN(WASAPIAudioInputStream); |
| 211 }; | 211 }; |
| 212 | 212 |
| 213 } // namespace media | 213 } // namespace media |
| 214 | 214 |
| 215 #endif // MEDIA_AUDIO_WIN_AUDIO_LOW_LATENCY_INPUT_WIN_H_ | 215 #endif // MEDIA_AUDIO_WIN_AUDIO_LOW_LATENCY_INPUT_WIN_H_ |
| OLD | NEW |