Searched refs:kNanosPerSecond (Results 1 – 15 of 15) sorted by relevance
51 static const int kNanosPerSecond = 1000000000; variable65 if (nanos <= -kNanosPerSecond || nanos >= kNanosPerSecond) { in CreateNormalized()66 seconds += nanos / kNanosPerSecond; in CreateNormalized()67 nanos = nanos % kNanosPerSecond; in CreateNormalized()72 nanos += kNanosPerSecond; in CreateNormalized()85 if (nanos <= -kNanosPerSecond || nanos >= kNanosPerSecond) { in CreateNormalized()86 seconds += nanos / kNanosPerSecond; in CreateNormalized()87 nanos = nanos % kNanosPerSecond; in CreateNormalized()92 nanos -= kNanosPerSecond; in CreateNormalized()95 nanos += kNanosPerSecond; in CreateNormalized()[all …]
35 return (time.tv_sec * kNanosPerSecond) + time.tv_nsec;48 time.tv_sec = nanoTime / kNanosPerSecond;49 time.tv_nsec = nanoTime - (time.tv_sec * kNanosPerSecond);65 time.tv_sec = nanoseconds / kNanosPerSecond;66 time.tv_nsec = nanoseconds - (time.tv_sec * kNanosPerSecond);
53 int64_t idealStartTimeNanos = (mFrameCount * kNanosPerSecond) / oboeStream->getSampleRate(); in onAudioReady()63 int64_t numFramesAsNanos = (numFrames * kNanosPerSecond) / oboeStream->getSampleRate(); in onAudioReady()
170 int64_t burstInNanos = getFramesPerBurst() * kNanosPerSecond / getSampleRate(); in waitForAvailableFrames()
130 static const int64_t kNanosPerSecond = 1000 * 1000 * 1000; in MakeAbsTimespec() local145 int64_t seconds = (std::min)(n / kNanosPerSecond, in MakeAbsTimespec()148 abstime.tv_nsec = static_cast<decltype(abstime.tv_nsec)>(n % kNanosPerSecond); in MakeAbsTimespec()
14 const int64_t kNanosPerSecond = 1000 * 1000 * 1000;18 return (int64_t{ts.tv_sec} * kNanosPerSecond +
106 int64_t nanosPerBuffer = (kNanosPerSecond * mLastBackgroundSize) / getSampleRate(); in predictNextCallbackTime()173 sleepForNanos = (getFramesPerBurst() * kNanosPerSecond) / getSampleRate(); in transfer()
65 const int32 kNanosPerSecond = 1000000000; variable
346 if (nanos < 0 || nanos >= kNanosPerSecond) { in RenderTimestamp()370 if (nanos <= -kNanosPerSecond || nanos >= kNanosPerSecond) { in RenderDuration()1147 StringPrintf(format, static_cast<double>(nanos) / kNanosPerSecond); in FormatNanos()
146 if (i_nanos > kNanosPerSecond || i_nanos < 0) { in GetNanosFromStringPiece()1084 nanos <= -kNanosPerSecond || nanos >= kNanosPerSecond) { in RenderDuration()
56 audioStream->waitForAvailableFrames(mMinimumFramesBeforeRead, oboe::kNanosPerSecond); in onAudioReady()
433 auto err = oboeStream->waitForAvailableFrames(mMinimumFramesBeforeRead, kNanosPerSecond); in runBlockingIO()
53 constexpr int64_t kNanosPerSecond = kNanosPerMillisecond * kMillisPerSecond; variable
59 … int64_t frameTimeDelta = (frameIndexDelta * oboe::kNanosPerSecond) / (mStream->getSampleRate()); in getCurrentOutputLatencyMillis()
640 int64_t frameTimeDelta = (frameIndexDelta * oboe::kNanosPerSecond) / getSampleRate(); in calculateLatencyMillis()