MCPcopy Create free account
hub / github.com/briankendall/proxy-audio-device / AddDeviceClient

Method AddDeviceClient

proxyAudioDevice/ProxyAudioDevice.cpp:633–658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

631}
632
633OSStatus ProxyAudioDevice::AddDeviceClient(AudioServerPlugInDriverRef inDriver,
634 AudioObjectID inDeviceObjectID,
635 const AudioServerPlugInClientInfo *inClientInfo) {
636 // This method is used to inform the driver about a new client that is using the given device.
637 // This allows the device to act differently depending on who the client is. This driver does
638 // not need to track the clients using the device, so we just check the arguments and return
639 // successfully.
640
641#pragma unused(inClientInfo)
642
643 // declare the local variables
644 OSStatus theAnswer = 0;
645
646 // check the arguments
647 FailWithAction(inDriver != gAudioServerPlugInDriverRef,
648 theAnswer = kAudioHardwareBadObjectError,
649 Done,
650 "ProxyAudio_AddDeviceClient: bad driver reference");
651 FailWithAction(inDeviceObjectID != kObjectID_Device,
652 theAnswer = kAudioHardwareBadObjectError,
653 Done,
654 "ProxyAudio_AddDeviceClient: bad device ID");
655
656Done:
657 return theAnswer;
658}
659
660OSStatus ProxyAudioDevice::RemoveDeviceClient(AudioServerPlugInDriverRef inDriver,
661 AudioObjectID inDeviceObjectID,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected