Added global play method that enables playing sounds on the fly

This commit is contained in:
Pavle Goloskokovic 2018-01-03 20:32:31 +01:00
parent 1c896ba1f7
commit 912a737561

View file

@ -44,13 +44,6 @@ var BaseSoundManager = new Class({
* @property {number} detune
*/
this.detune = 0;
/**
* Global amount of panning to apply.
* The value can range between -1 (full left pan) and 1 (full right pan).
* @property {number} pan
*/
this.pan = 0;
// TODO add fields for global spatialization options
/**
* Flag indicating if sounds should be paused when game looses focus,
* for instance when user switches tabs or to another program/app.
@ -119,7 +112,7 @@ var BaseSoundManager = new Class({
}
return sound;
},
addOscillator: NOOP,
play: NOOP,
remove: NOOP,
removeByKey: NOOP,
pauseAll: NOOP,