MCPcopy Create free account
hub / github.com/pixijs/sound / progress

Method progress

src/htmlaudio/HTMLAudioInstance.ts:95–100  ·  view source on GitHub ↗

The current playback progress from 0 to 1.

()

Source from the content-addressed store, hash-verified

93
94 /** The current playback progress from 0 to 1. */
95 public get progress(): number
96 {
97 const { currentTime } = this._source;
98
99 return currentTime / this._duration;
100 }
101
102 /** Pauses the sound. */
103 public get paused(): boolean

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected