• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: deprecated functions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: deprecated functions


  • Subject: Re: deprecated functions
  • From: Roland Silver <email@hidden>
  • Date: Mon, 31 Dec 2007 13:00:59 -0700

Your workaround for AudioDeviceAddIOProc is just what I'm looking for.
What about the other deprecated function, AudioDeviceRemoveIOProc?
--RS

On 2007Dec31, at 11:12, Hidetomo Katsura wrote:

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


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


  • Follow-Ups:
    • Re: deprecated functions
      • From: Hidetomo Katsura <email@hidden>
References: 
 >deprecated functions (From: Roland Silver <email@hidden>)
 >Re: deprecated functions (From: Hidetomo Katsura <email@hidden>)

  • Prev by Date: Re: deprecated functions
  • Next by Date: Re: deprecated functions
  • Previous by thread: Re: deprecated functions
  • Next by thread: Re: deprecated functions
  • Index(es):
    • Date
    • Thread