• 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
Sample rate property listener
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sample rate property listener


  • Subject: Sample rate property listener
  • From: email@hidden
  • Date: Thu, 01 Jun 2006 18:39:37 -0400

In my host, I want to adjust my synth's sample rate to match the output device's sample rate.

I added a listener to the (AUHAL) output audio unit:

AudioUnitAddPropertyListener(mOutputUnit, kAudioUnitProperty_SampleRate,
                             DeviceSampleRateListener, this);

I figured that it would be easier to set up the listener once, and even if a different device is assigned to the output AU, I would not have to tear down and recreate the listener.

In any case, I cannot figure out how to test my listener. Changing the sample rate of my output device in Audio MIDI setup does not seem to call the listener proc. And also the playback pitch seems fine after I change the sample rate in AMS. Yet one of my testers with different output hardware reports that for him, changing the SR in AMS does affect the pitch of the synth.

Any suggestions?

Thanks!

         - Rick

_______________________________________________
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: Sample rate property listener
      • From: Doug Wyatt <email@hidden>
  • Prev by Date: Re: Opening CoreAudio Examples in XCode
  • Next by Date: Re: Apple Lossless: working with 16 bit, silence with 24, 32 bit source data
  • Previous by thread: Re: Apple Lossless: working with 16 bit, silence with 24, 32 bit source data
  • Next by thread: Re: Sample rate property listener
  • Index(es):
    • Date
    • Thread