Skip to content

Commit 912a737

Browse files
Added global play method that enables playing sounds on the fly
1 parent 1c896ba commit 912a737

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

v3/src/sound/BaseSoundManager.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,6 @@ var BaseSoundManager = new Class({
4444
* @property {number} detune
4545
*/
4646
this.detune = 0;
47-
/**
48-
* Global amount of panning to apply.
49-
* The value can range between -1 (full left pan) and 1 (full right pan).
50-
* @property {number} pan
51-
*/
52-
this.pan = 0;
53-
// TODO add fields for global spatialization options
5447
/**
5548
* Flag indicating if sounds should be paused when game looses focus,
5649
* for instance when user switches tabs or to another program/app.
@@ -119,7 +112,7 @@ var BaseSoundManager = new Class({
119112
}
120113
return sound;
121114
},
122-
addOscillator: NOOP,
115+
play: NOOP,
123116
remove: NOOP,
124117
removeByKey: NOOP,
125118
pauseAll: NOOP,

0 commit comments

Comments
 (0)