CAClock and kCAClockProperty_InternalTimebase
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