Re: deprecated functions
Re: deprecated functions
- Subject: Re: deprecated functions
- From: Jeff Moore <email@hidden>
- Date: Tue, 8 Jan 2008 13:03:11 -0800
The AudioDeviceIOProcID that AudioDeviceCreateIOProcID() returns in it's fourth parameter is a token that represents the IOProc/client data pointer pair that you are registering. This token is what you pass to AudioDeivceStart(), AudioDeviceStop(), etc. to tell the HAL what IOProc to perform the operation on.
Needless to say, you also need this token to call AudioDeviceDestroyIOProcID() too =)
On Jan 7, 2008, at 1:35 PM, Roland Silver wrote: 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?
--
Jeff Moore Core Audio Apple
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden