// _________________________________________________________________________________________
//	USBMIDIDeviceManager::USBMIDIDeviceManager
//
USBMIDIDeviceManager::USBMIDIDeviceManager(				USBMIDIDriverBase *		driver,
														MIDIDeviceListRef		devList) :
	USBDeviceManager(CFRunLoopGetCurrent()),
	mDriver(driver)
{
	// this could be moved to a utility function
	int nDevices = MIDIDeviceListGetNumberOfDevices(devList);
	
	if (driver->mVersion >= 2) {
		// mark everything previously present as offline
		for (int iDevice = 0; iDevice < nDevices; ++iDevice) {
			MIDIDeviceRef midiDevice = MIDIDeviceListGetDevice(devList, iDevice);
			MIDIObjectSetIntegerProperty(midiDevice, kMIDIPropertyOffline, true);
		}
	}
	
	ScanServices();
}
Ejemplo n.º 2
0
//
//    ScanXP
//    ======
//
//    Over-ride of the base class to recover information using a Windows XP onwards registry scan
//
bool CServicesScanner::ScanRegistryXP()
{
	ScanServices();
	return true;
}