Skip to content

Commit 403f5b3

Browse files
Not unlocking sound manager by default in base class
1 parent 433247f commit 403f5b3

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

src/sound/BaseSoundManager.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ var NOOP = require('../utils/NOOP');
3131
* @classdesc
3232
* The sound manager is responsible for playing back audio via Web Audio API or HTML Audio tag as fallback.
3333
* The audio file type and the encoding of those files are extremely important.
34-
*
34+
*
3535
* Not all browsers can play all audio formats.
36-
*
36+
*
3737
* There is a good guide to what's supported [here](https://developer.mozilla.org/en-US/Apps/Fundamentals/Audio_and_video_delivery/Cross-browser_audio_basics#Audio_Codec_Support).
3838
*
3939
* @class BaseSoundManager
@@ -169,11 +169,6 @@ var BaseSoundManager = new Class({
169169
* @since 3.0.0
170170
*/
171171
this.unlocked = false;
172-
173-
if (this.locked)
174-
{
175-
this.unlock();
176-
}
177172
},
178173

179174
/**
@@ -537,7 +532,7 @@ var BaseSoundManager = new Class({
537532

538533
/**
539534
* Sets the global playback rate at which all the sounds will be played.
540-
*
535+
*
541536
* For example, a value of 1.0 plays the audio at full speed, 0.5 plays the audio at half speed
542537
* and 2.0 doubles the audios playback speed.
543538
*

0 commit comments

Comments
 (0)