• 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
eliminating deprecated functions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

eliminating deprecated functions


  • Subject: eliminating deprecated functions
  • From: Roland Silver <email@hidden>
  • Date: Sat, 16 Feb 2008 03:46:43 -0700

I've been trying unsuccessfully for some time to find or create a project that will simply emit a 440 Hz tone through the Mac speakers using the AudioQueue framework. 

The only success I've had is to use James McCartney's obsolescent project Sinewave_demo as a model; it indeed emits a 440 Hz tone -- but when built has two warnings:

AudioDeviceAddIOProc and AudioDeviceRemoveIOProc are deprecated.

Can someone tell me how to fix this problem?


err = AudioDeviceAddIOProc(device, appIOProc, (void *) def);

warning: AudioDeviceAddIOProc is deprecated

...

err = AudioDeviceRemoveIOProc(device, appIOProc);

warning: AudioDeviceRemoveIOProc is deprecated

where

AudioDeviceID device;

typedef struct {
    @defs(Sinewave);
}  sinewavedef;

sinewavedef *def;

def = (sinewavedef *)self;

and appIOProc is the callback.


I didn't want to make this email longer by attaching the entire Sinewave_demo project (without the "build" folder), but I'll be glad to do so if that will help.

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: eliminating deprecated functions
      • From: Jeff Moore <email@hidden>
  • Prev by Date: Re: FilterDemo + Logic
  • Next by Date: Re: eliminating deprecated functions
  • Previous by thread: AU's built on Leopard, running on Tiger
  • Next by thread: Re: eliminating deprecated functions
  • Index(es):
    • Date
    • Thread