| 631 | } |
| 632 | |
| 633 | OSStatus 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 | |
| 656 | Done: |
| 657 | return theAnswer; |
| 658 | } |
| 659 | |
| 660 | OSStatus ProxyAudioDevice::RemoveDeviceClient(AudioServerPlugInDriverRef inDriver, |
| 661 | AudioObjectID inDeviceObjectID, |
no outgoing calls
no test coverage detected