Skip to content

Commit 1296dd7

Browse files
Added totalDuration property to BaseSound class
1 parent f932e31 commit 1296dd7

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

v3/src/sound/BaseSound.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,13 @@ var BaseSound = new Class({
9090
* @property {number} duration
9191
*/
9292
this.duration = 0;
93+
/**
94+
* Duration of the entire sound.
95+
*
96+
* @readonly
97+
* @property {number}
98+
*/
99+
this.totalDuration = 0;
93100
/**
94101
* Flag indicating if sound is currently playing.
95102
*

0 commit comments

Comments
 (0)