Lines Matching refs:timestamp

129         TimestampInfo *timestamp = &timestampData->timestamps[timestampData->timestampCount];  in timestampDataCallbackProc()  local
130 timestamp->result = AAudioStream_getTimestamp(stream, in timestampDataCallbackProc()
132 &timestamp->timestampPosition, in timestampDataCallbackProc()
133 &timestamp->timestampNanos); in timestampDataCallbackProc()
134 timestamp->framesTotal = timestampData->framesTotal; in timestampDataCallbackProc()
135 timestamp->appPosition = (direction == AAUDIO_DIRECTION_OUTPUT) in timestampDataCallbackProc()
138 timestamp->appNanoseconds = getNanoseconds(); in timestampDataCallbackProc()
286 TimestampInfo *timestamp = &sTimestampData.timestamps[i]; in testTimeStamps() local
287 if (timestamp->result != AAUDIO_OK) { in testTimeStamps()
291 (long long) timestamp->framesTotal, in testTimeStamps()
292 (long long) timestamp->appPosition, in testTimeStamps()
293 AAudio_convertResultToText(timestamp->result)); in testTimeStamps()
297 const bool posChanged = (timestamp->timestampPosition != in testTimeStamps()
298 (timestamp - 1)->timestampPosition); in testTimeStamps()
299 const bool timeChanged = (timestamp->timestampNanos in testTimeStamps()
300 != (timestamp - 1)->timestampNanos); in testTimeStamps()
302 bool negative = timestamp->timestampPosition < 0; in testTimeStamps()
303 bool retro = (i > 0 && (timestamp->timestampPosition < in testTimeStamps()
304 (timestamp - 1)->timestampPosition)); in testTimeStamps()
308 double latency = calculateLatencyMillis(timestamp->timestampPosition, in testTimeStamps()
309 timestamp->timestampNanos, in testTimeStamps()
310 timestamp->appPosition, in testTimeStamps()
311 timestamp->appNanoseconds, in testTimeStamps()
315 (long long) timestamp->framesTotal, in testTimeStamps()
316 (long long) timestamp->appPosition); in testTimeStamps()
318 (long long) timestamp->timestampPosition, in testTimeStamps()
319 (long long) timestamp->timestampNanos, in testTimeStamps()