Re: deprecated functions
Re: deprecated functions
- Subject: Re: deprecated functions
- From: Hidetomo Katsura <email@hidden>
- Date: Mon, 31 Dec 2007 10:12:21 -0800
it's described in the 10.5.sdk header file. i don't know if or when
Core Reference Library in Xcode gets updated.
use AudioDeviceCreateIOProcID and AudioDeviceDestroyIOProcID instead.
if your default sdk is 10.5, just command - double-click
AudioDeviceAddIOProc to see the description.
or use Terminal:
% cd /Developer/SDKs/MacOSX10.5.sdk
% grep -rsI AudioDeviceAddIOProc .
./System/Library/Frameworks/CoreAudio.framework/Headers/AudioHardware.h
% open ./System/Library/Frameworks/CoreAudio.framework/Headers/
AudioHardware.h
@function AudioDeviceAddIOProc
@discussion This routine has been deprecated in favor of
AudioDeviceCreateIOProcID().
it's deprecated under 10.5.sdk (not Leopard Xcode), and these new APIs
are only available on 10.5 and later.
i did something like this in my apps as i only add (or create) one
IOProc per device (sInputIOProcID is a static variable, not a member
variable).
#if defined(MAC_OS_X_VERSION_10_5) &&
(MAC_OS_X_VERSION_MIN_REQUIRED>=MAC_OS_X_VERSION_10_5)
status = AudioDeviceCreateIOProcID( device, InputIOProc, NULL,
&sInputIOProcID );
#else
// deprecated in favor of AudioDeviceCreateIOProcID()
status = AudioDeviceAddIOProc( device, InputIOProc, NULL );
#endif
regards,
katsura
On Dec 31, 2007, at 7:56 AM, Roland Silver wrote:
I have an audio app that calls two functions that are deprecated
under the Leopard Xcode:
err = AudioDeviceAddIOProc(device, appIOProc, (void *) def);
err = AudioDeviceRemoveIOProc(device, appIOProc);
Can anyone suggest what I should do instead?
Roland Silver
email@hidden
_______________________________________________
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