bool ARDevice::initHardware(IOService* inProvider) { bool theAnswer = false; if(IOAudioDevice::initHardware(inProvider)) { // set up some basic stuff about the device setDeviceName("DeviceName"); setDeviceShortName("DeviceShortName"); setManufacturerName("ManufacturerName"); setDeviceModelName("Audio_Reflector"); setDeviceTransportType('virt'); setDeviceCanBeDefault(0); // Setting this flag causes the HAL to use the strings passed to it as keys into the Localizable.strings file. #if AR_Debug // for debugging, use the location in the build results setProperty (kIOAudioDeviceLocalizedBundleKey, "../../../Path/To/Your/BuildProducts/AudioReflectorDriver.kext"); #else setProperty (kIOAudioDeviceLocalizedBundleKey, "AudioReflectorDriver.kext"); #endif theAnswer = CreateAudioEngine(); } return theAnswer; }
/* * initHardware() */ bool SoundflowerDevice::initHardware(IOService *provider) { bool result = false; //IOLog("SoundflowerDevice[%p]::initHardware(%p)\n", this, provider); if (!super::initHardware(provider)) { goto Done; } setDeviceName("Soundflower"); setDeviceShortName("Soundflower"); setManufacturerName("ma++ ingalls for Cycling '74"); if (!createAudioEngines()) { goto Done; } result = true; Done: return result; }
bool PNetAudioDevice::initHardware (IOService *provider) { if (!super::initHardware(provider)) { IOLog("IOAudioDevice::initHardware(%p) failed\n", provider); return false; } setDeviceName("Portable Network Audio Device"); setDeviceShortName("PNetAudio"); setManufacturerName("LowH.net"); return createAudioEngine(); }
bool SoundflowerDevice::initHardware(IOService *provider) { bool result = false; if (!super::initHardware(provider)) goto Done; setDeviceName("WavTap"); setDeviceShortName("WavTap"); setManufacturerName("WavTap"); if (!createAudioEngines()) goto Done; result = true; Done: return result; }
bool MixlrAudioDevice::initHardware(IOService *provider) { bool result = false; //IOLog("MixlrAudioDevice[%p]::initHardware(%p)\n", this, provider); if (!super::initHardware(provider)) goto Done; setDeviceName("Mixlr"); setDeviceShortName("Mixlr"); setManufacturerName("Mixlr"); if (!createAudioEngines()) goto Done; result = true; Done: return result; }