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

CAClock and kCAClockProperty_InternalTimebase


  • Subject: CAClock and kCAClockProperty_InternalTimebase
  • From: "I. K." <email@hidden>
  • Date: Mon, 2 Mar 2009 21:55:51 -0600

Hello,
I want to create an instance of CAClock wich derives its timing source
from an AudioDevice.
I get kCAClock_InvalidTimebaseSourceError and
kCAClock_InvalidTimebaseError in the code bellow.

//	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.

I would apreciate some pointers to the reason why setting the clock's
property fails.

TIA.
 _______________________________________________
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: CAClock and kCAClockProperty_InternalTimebase
      • From: Doug Wyatt <email@hidden>
  • Prev by Date: AURemoteIO returning an error on AudioOutputUnitStart
  • Next by Date: Using LAME in iPhone for MP3 Encoding
  • Previous by thread: Re: AURemoteIO returning an error on AudioOutputUnitStart
  • Next by thread: Re: CAClock and kCAClockProperty_InternalTimebase
  • Index(es):
    • Date
    • Thread