Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: deprecated functions



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:
http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

This email sent to email@hidden

References: 
 >Re: deprecated functions (From: Roland Silver <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.