Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(853)

Side by Side Diff: media/audio/win/audio_low_latency_input_win.h

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 // Size in audio frames of each audio packet where an audio packet 139 // Size in audio frames of each audio packet where an audio packet
140 // is defined as the block of data which the user received in each 140 // is defined as the block of data which the user received in each
141 // OnData() callback. 141 // OnData() callback.
142 size_t packet_size_frames_; 142 size_t packet_size_frames_;
143 143
144 // Size in bytes of each audio packet. 144 // Size in bytes of each audio packet.
145 size_t packet_size_bytes_; 145 size_t packet_size_bytes_;
146 146
147 // Length of the audio endpoint buffer. 147 // Length of the audio endpoint buffer.
148 uint32 endpoint_buffer_size_frames_; 148 uint32_t endpoint_buffer_size_frames_;
149 149
150 // Contains the unique name of the selected endpoint device. 150 // Contains the unique name of the selected endpoint device.
151 // Note that AudioManagerBase::kDefaultDeviceId represents the default 151 // Note that AudioManagerBase::kDefaultDeviceId represents the default
152 // device role and is not a valid ID as such. 152 // device role and is not a valid ID as such.
153 std::string device_id_; 153 std::string device_id_;
154 154
155 // Conversion factor used in delay-estimation calculations. 155 // Conversion factor used in delay-estimation calculations.
156 // Converts a raw performance counter value to 100-nanosecond unit. 156 // Converts a raw performance counter value to 100-nanosecond unit.
157 double perf_count_to_100ns_units_; 157 double perf_count_to_100ns_units_;
158 158
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 // Extra audio bus used for storage of deinterleaved data for the OnData 202 // Extra audio bus used for storage of deinterleaved data for the OnData
203 // callback. 203 // callback.
204 scoped_ptr<media::AudioBus> audio_bus_; 204 scoped_ptr<media::AudioBus> audio_bus_;
205 205
206 DISALLOW_COPY_AND_ASSIGN(WASAPIAudioInputStream); 206 DISALLOW_COPY_AND_ASSIGN(WASAPIAudioInputStream);
207 }; 207 };
208 208
209 } // namespace media 209 } // namespace media
210 210
211 #endif // MEDIA_AUDIO_WIN_AUDIO_LOW_LATENCY_INPUT_WIN_H_ 211 #endif // MEDIA_AUDIO_WIN_AUDIO_LOW_LATENCY_INPUT_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698