Skip to content

Commit

Permalink
implicit convert of float to bool does not sound logical to non-C gurus
Browse files Browse the repository at this point in the history
  • Loading branch information
mman committed Dec 14, 2017
1 parent 475927e commit 1e60af0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TPCircularBuffer+AudioBufferList.c
Expand Up @@ -198,7 +198,7 @@ void TPCircularBufferConsumeNextBufferListPartial(TPCircularBuffer *buffer, UInt
block->timestamp.mSampleTime += framesToConsume;
}
if ( block->timestamp.mFlags & kAudioTimeStampHostTimeValid ) {
if ( !__secondsToHostTicks ) {
if ( __secondsToHostTicks == 0.0 ) {
mach_timebase_info_data_t tinfo;
mach_timebase_info(&tinfo);
__secondsToHostTicks = 1.0 / (((double)tinfo.numer / tinfo.denom) * 1.0e-9);
Expand Down

0 comments on commit 1e60af0

Please sign in to comment.