Skip to content

Commit f932e31

Browse files
Added duration property to BaseSound class
1 parent 7442ab5 commit f932e31

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

v3/src/sound/BaseSound.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,14 @@ var BaseSound = new Class({
8282
*/
8383
this.pan = 0;
8484
this.config = Extend(this.config, config);
85+
/**
86+
* A value representing the duration, in seconds.
87+
* It could be total sound duration or a marker duration.
88+
*
89+
* @readonly
90+
* @property {number} duration
91+
*/
92+
this.duration = 0;
8593
/**
8694
* Flag indicating if sound is currently playing.
8795
*

0 commit comments

Comments
 (0)