AudioHardware.h tells me that AudioDeviceAddIOProc has been deprecated in favor of AudioDeviceCreateIOProcID. I have a problem with the fourth argument of AudioDeviceCreateIOProcID. The earlier version of my code had AudioDeviceAddIOProc(defs.device, appIOProc, &defs); where defs.device is the AudioDevice to register the IOProc with, appIOProc is the AudioDeviceIOProc to register, and &defs is a pointer to client data that is passed back to the IOProc when it is called. This suggests that the call to AudioDeviceAddIOProc should be replaced by: AudioDeviceCreateIOProcID(defs.device, appIOProc, &defs, ??);
The fourth argument should be "the newly created AudioDeviceIOProcID", so what should I put there?
If this question is answered in the coreAudio FAQs, please let me know the URL for getting to that FAQ.
|