Skip to content

Commit 00c2fd3

Browse files
Moved totalRate initialisation above setting config options since it is used in some of the config options' setters (detune, rate)
1 parent fd96a32 commit 00c2fd3

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

v3/src/sound/BaseSound.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ var BaseSound = new Class({
4949
* @property {boolean} isPaused
5050
*/
5151
this.isPaused = false;
52+
/**
53+
* A property that holds the value of sound's actual playback rate,
54+
* after its rate and detune values has been combined with global
55+
* rate and detune values.
56+
*
57+
* @property {number} totalRate
58+
*/
59+
this.totalRate = 1;
5260
/**
5361
* [description]
5462
*
@@ -77,14 +85,6 @@ var BaseSound = new Class({
7785
* @property {number} detune
7886
*/
7987
this.detune = 0;
80-
/**
81-
* A property that holds the value of sound's actual playback rate,
82-
* after its rate and detune values has been combined with global
83-
* rate and detune values.
84-
*
85-
* @property {number} totalRate
86-
*/
87-
this.totalRate = 1;
8888
/**
8989
* [description]
9090
*

0 commit comments

Comments
 (0)