• 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: correcting calls to deprecated functions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: correcting calls to deprecated functions


  • Subject: Re: correcting calls to deprecated functions
  • From: Jeff Moore <email@hidden>
  • Date: Thu, 25 Sep 2008 11:18:32 -0700

As to your question about the HAL's API, you pass the address of an AudioDeviceIOProcID, just as the function prototype says in <CoreAudio/ AudioHardware.h>. It would look something like this:

AudioDeviceIOProcID myIOProcID;
theError = AudioDeviceCreateIOProcID(myDeviceID, InputIOProc, NULL, &myIOProcID);


Later, when you are done with using this IOProc and want to dispose of the AudioDeviceIOProcID, you'd do this:

  theError = AudioDeviceDestroyIOProcID(myDeviceID, myIOProcID);

As to using AUHAL vs. the HAL to do stuff, I still stand by my advice about using AUHAL. The HAL makes you do a lot of work to be a proper client. AUHAL saves you from having write that code. In the long run, it will save you headaches.

On Sep 25, 2008, at 9:10 AM, Roland Silver wrote:

Tried your auggestion, AU, couldn't get it to work.
HAL works.
So I seek a solution to my problem using HAL, not AU.
--RS

Message: 5
Date: Thu, 21 Feb 2008 12:07:33 -0700
From: Roland Silver <email@hidden>
Subject: correcting calls to deprecated functions
To: katsura <email@hidden>
Cc: Core Audio List <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"

You (katsura) suggested changing my call to the deprecated function
AudioDeviceAddIOProc as follows:
change
	status = AudioDeviceAddIOProc( device, InputIOProc, NULL );
to
	status =
	AudioDeviceCreateIOProcID( device, InputIOProc, NULL, [arg4] );
Question: What do I need to put in for [arg4]?

I also need to change
	err = AudioDeviceRemoveIOProc(device, appIOProc);
Is this correct?
	err = AudioDeviceDestroyIOProcID(device, &appIOProc);



--

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
References: 
 >Re: correcting calls to deprecated functions (From: Roland Silver <email@hidden>)

  • Prev by Date: Re: deprecated function
  • Next by Date: Playing Audio Backwards
  • Previous by thread: Re: correcting calls to deprecated functions
  • Next by thread: Audiounit with Cocoa View steals 'space bar' events from Logic
  • Index(es):
    • Date
    • Thread