position property

  1. @override
Duration get position
override

The position of the playhead.

This value comes from the frames that the device consumed, and never from a timer on this side. A timer drifts against the audio clock immediately, and the playhead then reports a position where the sound is not.

A host samples this value and does not listen to a stream of it. When a host paints, the host reads this value. The value is accurate to within one device buffer, which is the best accuracy that a consumer of an audio callback can claim.

Implementation

@override
Duration get position => _position;