Lines Matching refs:device
98 static bool GetDevices(const CLSID& catid, std::vector<Device>* out);
99 static bool GetCoreAudioDevices(bool input, std::vector<Device>* devs);
100 static bool GetWaveDevices(bool input, std::vector<Device>* devs);
142 bool Win32DeviceManager::GetDefaultVideoCaptureDevice(Device* device) {
146 std::vector<Device> devices;
149 *device = devices[0];
153 *device = devices[i];
162 std::vector<Device>* devs) {
175 bool Win32DeviceManager::GetVideoCaptureDevices(std::vector<Device>* devices) {
183 bool GetDevices(const CLSID& catid, std::vector<Device>* devices) {
193 LOG(LS_ERROR) << "Failed to create device enumerator, hr=" << hr;
203 // Initialize Logitech device if applicable
214 // Get the device id if one exists.
220 devices->push_back(Device(name_str, path_str));
248 HRESULT CricketDeviceFromImmDevice(IMMDevice* device, Device* out) {
251 HRESULT hr = device->OpenPropertyStore(STGM_READ, &props);
271 bool input, std::vector<Device>* devs) {
287 CComPtr<IMMDevice> device;
290 hr = devices->Item(i, &device);
295 Device dev;
296 hr = CricketDeviceFromImmDevice(device, &dev);
300 LOG(LS_WARNING) << "Unable to query IMM Device, skipping. HR="
316 bool GetWaveDevices(bool input, std::vector<Device>* devs) {
317 // Note, we don't use the System Device Enumerator interface here since it
319 // variants of the same device.
326 devs->push_back(Device(rtc::ToUtf8(caps.szPname),
336 devs->push_back(Device(rtc::ToUtf8(caps.szPname), i));