Re: DefaultOutputDevice timestamps
Re: DefaultOutputDevice timestamps
- Subject: Re: DefaultOutputDevice timestamps
- From: email@hidden
- Date: Thu, 25 Oct 2001 02:16:25 -0500 (CDT)
Well trip my trigger... that was it. I just changed it to a printf
statement and it prints fine now. I never would have figured that out on
my own - especially because the junk value NSLog prints out is always
has the largest digit the same even though the largest digit changes
value from one test to another (in different sessions). It's a shame this
problem isn't highlighted any place I've looked at NSLog documentation,
(Apple, CocoaDevCentral, etc.) The \n at the end was just a remnant from
when the NSLog statement was a different printf statement - I tend to copy
and paste method calls a lot. Thanks a lot for the help as I've had a
"block" on development for this part of the code and subsequent
functionality (which is a lot considering I need this for synchronization)
for weeks now.
Thanks again,
Ben
On Wed, 24 Oct 2001, Kurt Revis wrote:
>
Your Objective-C stuff is fine. Here is the real problem:
>
>
> NSLog(@"In audioCallback inOutputTime.mHostTime = %llu \n",
>
> inOutputTime->mHostTime);
>
>
NSLog does not handle format specifiers for long longs. The value
>
inOutputTime->mHostTime is fine (that's why playing sound works), but
>
it is being output as garbage.
>
...