• 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: CAPlayThrough sample code problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CAPlayThrough sample code problem


  • Subject: Re: CAPlayThrough sample code problem
  • From: Daniel Tapie <email@hidden>
  • Date: Thu, 05 Jan 2012 10:40:23 +0100

Sorry for the flood of emails, but the problem is still there, it is just showing up after a much longer time (around 8 minutes now).

I'll dig deeper into this...


Daniel Tapie


On 5 Jan 2012, at 10:22, Daniel Tapie wrote:

Replying to my own post, the problem came from the inversion of the parameters used to compute the varispeed rate. Here is the correct code (at least it works on my system now):


err = AudioDeviceGetCurrentTime(This->mOutputDevice.mID, &outTS);
checkErr(err);

---> rate = outTS.mRateScalar / inTS.mRateScalar;

err = AudioUnitSetParameter(This->mVarispeedUnit, kVarispeedParam_PlaybackRate, kAudioUnitScope_Global, 0, rate, 0);
checkErr(err);

The incorrect division was:
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: 
 >CoreAudio (CAF/AAC) missing packet table (From: Chris Ballinger <email@hidden>)
 >CAPlayThrough sample code problem (From: Daniel Tapie <email@hidden>)
 >Re: CAPlayThrough sample code problem (From: Daniel Tapie <email@hidden>)

  • Prev by Date: Re: CAPlayThrough sample code problem
  • Next by Date: Re: CAPlayThrough sample code problem
  • Previous by thread: Re: CAPlayThrough sample code problem
  • Next by thread: Re: CAPlayThrough sample code problem
  • Index(es):
    • Date
    • Thread