• 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: CAClock and kCAClockProperty_InternalTimebase
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CAClock and kCAClockProperty_InternalTimebase


  • Subject: Re: CAClock and kCAClockProperty_InternalTimebase
  • From: Doug Wyatt <email@hidden>
  • Date: Tue, 3 Mar 2009 08:37:32 -0800


On Mar 2, 2009, at 19:55 , I. K. wrote:

Hello,
I want to create an instance of CAClock wich derives its timing source
from an AudioDevice.
I get kCAClock_InvalidTimebaseSourceError

that means that you have selected a timebase source when the timebase is host time


and
kCAClock_InvalidTimebaseError in the code bellow.


that looks like a long-standing bug where using an audio device as the timebase source won't work. I've written a bug.


it looks like using an audio output unit will work however.


//	CAClockTimebase time_base = kCAClockTimebase_HostTime;
	CAClockTimebase time_base = kCAClockTimebase_AudioDevice;
//	CAClockTimebase time_base = kCAClockTimebase_AudioOutputUnit;

	err = CAClockSetProperty(
		clk,
		kCAClockProperty_InternalTimebase,
		sizeof(CAClockTimebase),
		&time_base);
	checkErr(err);

	err = CAClockSetProperty(
		clk,
		kCAClockProperty_TimebaseSource,
//		sizeof(HALUnit),
//		&HALUnit);
		sizeof(AudioDeviceID),
		&mOutputDevice);
	checkErr(err);

the calls work fine if I set it to kCAClockTimebase_HostTime.
Actually, it is just the first one (to set
kCAClockProperty_InternalTimebase which is the default and doesnt need
a source).

mOutputDevice and HALUnit are fine. The code was inserted for testing
purposes in the sdk's SimplePlayThru example.

_______________________________________________ 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: 
 >CAClock and kCAClockProperty_InternalTimebase (From: "I. K." <email@hidden>)

  • Prev by Date: Re: How to proper destroy an AURemoteIO ????
  • Next by Date: Re: CAClockSetCurrentTime Help
  • Previous by thread: CAClock and kCAClockProperty_InternalTimebase
  • Next by thread: Using LAME in iPhone for MP3 Encoding
  • Index(es):
    • Date
    • Thread