• 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
Problems with AUPitch and sample rate (perhaps S/R change problems in general)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems with AUPitch and sample rate (perhaps S/R change problems in general)


  • Subject: Problems with AUPitch and sample rate (perhaps S/R change problems in general)
  • From: "B.J. Buchalter" <email@hidden>
  • Date: Fri, 14 Jul 2006 20:48:50 -0400
  • Thread-topic: Problems with AUPitch and sample rate (perhaps S/R change problems in general)

Hi Folks,

If I have an AUPitch set to do no processing, and I have everything set to
44100, then the plugin does no processing -- it just delays the audio by the
plugin's latency.

If on the otherhand, I change to 48000, the plugin appears to change the
pitch, and the reported latency seems to be wrong.

When I change the sample rate, I do the following:

    err = AudioUnitUninitialize(mInstance);
    err = AudioUnitSetProperty(mInstance, kAudioUnitProperty_SampleRate,
        kAudioUnitScope_Global, 0, &caSR, size);
    err = AudioUnitInitialize(mInstance);

Is this sufficient, or is there more to it? Do I need to adjust the sample
rates for the IO formats as well?

This code appears to work fine for other AU plugs, like the Apple supplied
Eqs, but it seems to have problems for the AUPitch, which is my testcase for
a plug with latency.

Any suggestions?

Thanks!

B.J. Buchalter

Metric Halo
5 Donovan Drive
Hopewell Junction, NY 12533 USA
tel +1 845 223-6112
fax +1 603 250-2451


 _______________________________________________
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: Problems with AUPitch and sample rate (perhaps S/R change problems in general)
      • From: "B.J. Buchalter" <email@hidden>
  • Prev by Date: Newbie question: AudioUnits, SinSynth and Ableton Live
  • Next by Date: Re: Problems with AUPitch and sample rate (perhaps S/R change problems in general)
  • Previous by thread: Newbie question: AudioUnits, SinSynth and Ableton Live
  • Next by thread: Re: Problems with AUPitch and sample rate (perhaps S/R change problems in general)
  • Index(es):
    • Date
    • Thread