Home | History | Annotate | Download | only in devices

Lines Matching defs:devices

28 #include "talk/media/devices/win32devicemanager.h"
144 // If there are multiple capture devices, we want the first USB one.
146 std::vector<Device> devices;
147 ret = (GetVideoCaptureDevices(&devices) && !devices.empty());
149 *device = devices[0];
150 for (size_t i = 0; i < devices.size(); ++i) {
151 if (strnicmp(devices[i].id.c_str(), kUsbDevicePathPrefix,
153 *device = devices[i];
175 bool Win32DeviceManager::GetVideoCaptureDevices(std::vector<Device>* devices) {
176 devices->clear();
177 if (!GetDevices(CLSID_VideoInputDeviceCategory, devices)) {
180 return FilterDevices(devices, kFilteredVideoDevicesName);
183 bool GetDevices(const CLSID& catid, std::vector<Device>* devices) {
197 // Only enum devices if CreateClassEnumerator returns S_OK. If there are no
198 // devices available, S_FALSE will be returned, but enumMk will be NULL.
220 devices->push_back(Device(name_str, path_str));
278 CComPtr<IMMDeviceCollection> devices;
280 DEVICE_STATE_ACTIVE, &devices);
283 hr = devices->GetCount(&count);
290 hr = devices->Item(i, &device);
318 // adds lots of pseudo-devices to the list, such as DirectSound and Wave