my CoreAudio Clock won't stop!
my CoreAudio Clock won't stop!
- Subject: my CoreAudio Clock won't stop!
- From: "Ferguson, Paul" <email@hidden>
- Date: Wed, 17 Jan 2007 17:28:49 -0000
- Thread-topic: my CoreAudio Clock won't stop!
Title: my CoreAudio Clock won't stop!
Can anyone shed some light on the following problem ?
A simple coreaudio Clock experiment in cocoa - interface code removed but minimal anyway..
.
.
CAClockRef pfClockRef;
CAClockTime pfTimestamp;
OSStatus osErr;
osErr = CAClockNew(0, &pfClockRef); // sucessfully creates a new clock - appears to default to internal timebase = host
.
.
osErr = CAClockStart(pfClockRef); //sucessfully starts the clock
.
.
osErr = CAClockGetCurrentTime(pfClockRef, kCAClockTimeFormat_Seconds, &pfTimestamp); //sucessfully prints running clock
printf("currentTime... returned error code %d, current time is%f\n", osErr, pfTimestamp.time.seconds);
.
.
osErr = CAClockStop(pfClockRef); //not what I expected !! - instead of stopping the clock, the current time is stored as the new clockStartTime and the clock continues to run....
.
.
Many thanks in anticipation
Paul Fergy
This message is intended for the addressee(s) only and
should not be read, copied or disclosed to anyone else outwith the University
without the permission of the sender.
It is your responsibility to ensure
that this message and any attachments are scanned for viruses or other defects.
Napier University does not accept liability for any loss
or damage which may
result from this email or any attachment, or for errors or omissions arising
after it was sent. Email is not a secure medium. Email entering the
University's system is subject to routine monitoring and filtering by the
University.
_______________________________________________
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