Home
last modified time | relevance | path

Searched refs:nanosDelta (Results 1 – 3 of 3) sorted by relevance

/frameworks/av/media/libaaudio/src/client/
DIsochronousClockModel.cpp72 int64_t nanosDelta = nanoTime - mMarkerNanoTime; in processTimestamp() local
73 if (nanosDelta < 1000) { in processTimestamp()
97 if (nanosDelta < expectedNanosDelta) { in processTimestamp()
105 if (nanosDelta < expectedNanosDelta) { in processTimestamp()
112 } else if (nanosDelta > (expectedNanosDelta + mMaxLatenessInNanos)) { in processTimestamp()
146 int64_t IsochronousClockModel::convertDeltaTimeToPosition(int64_t nanosDelta) const { in convertDeltaTimeToPosition()
147 return (mSampleRate * nanosDelta) / AAUDIO_NANOS_PER_SECOND; in convertDeltaTimeToPosition()
157 int64_t nanosDelta = convertDeltaPositionToTime(framesDelta); in convertPositionToTime() local
158 int64_t time = mMarkerNanoTime + nanosDelta; in convertPositionToTime()
169 int64_t nanosDelta = nanoTime - mMarkerNanoTime; in convertTimeToPosition() local
[all …]
DIsochronousClockModel.h91 int64_t convertDeltaTimeToPosition(int64_t nanosDelta) const;
DAudioStreamInternal.cpp447 int64_t nanosDelta = nanoTime - oldTime; in logTimestamp() local
448 if (nanosDelta > 0 && oldTime > 0) { in logTimestamp()
450 int64_t rate = (framesDelta * AAUDIO_NANOS_PER_SECOND) / nanosDelta; in logTimestamp()
452 (long long) framesDelta, (long long) nanosDelta, (long long) rate); in logTimestamp()