• 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: CAClockSetCurrentTime Help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CAClockSetCurrentTime Help


  • Subject: Re: CAClockSetCurrentTime Help
  • From: Doug Wyatt <email@hidden>
  • Date: Tue, 3 Mar 2009 08:38:24 -0800

What are the values in clockTime.time? What is the error?

On Mar 3, 2009, at 0:20 , Chad Williams wrote:

Thank you for all of the Core Audio postings. They have been extremely
helpful to me. I have a bit of a dilemma. I can't seem to set the
CAClockTime from a SMPTETime. Any help would be great. I am trying to set
the value from NSTextFields. The code compiles with no errors...I just get
"err" when CAClockSetCurrentTime() is called. I have no issues setting the
time from seconds.


OSStatus err;
CAClockTime clockTime;

clockTime.format = kCAClockTimeFormat_SMPTETime;
clockTime.time.smpte.mType = kSMPTETimeType30;
clockTime.time.smpte.mHours = (SInt16)[hhField intValue];
clockTime.time.smpte.mMinutes = (SInt16)[mmField intValue];
clockTime.time.smpte.mSeconds = (SInt16)[ssField intValue];
clockTime.time.smpte.mFrames = (SInt16)[ffField intValue];
clockTime.time.smpte.mSubframeDivisor = 80;
clockTime.time.smpte.mSubframes = 0;

err = CAClockSetCurrentTime(clockRef, &clockTime);
   if (err != noErr) {
       NSLog(@"setClockToSMPTETime err = %d", err);
   }

Thanks, Chad

_______________________________________________ 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: CAClockSetCurrentTime Help
      • From: Chad Williams <email@hidden>
    • Re: CAClockSetCurrentTime Help
      • From: Chad Williams <email@hidden>
References: 
 >CAClockSetCurrentTime Help (From: Chad Williams <email@hidden>)

  • Prev by Date: Re: CAClock and kCAClockProperty_InternalTimebase
  • Next by Date: Re: Recording compressed audio file
  • Previous by thread: CAClockSetCurrentTime Help
  • Next by thread: Re: CAClockSetCurrentTime Help
  • Index(es):
    • Date
    • Thread