|
|
@ -170,11 +170,7 @@ SoundManager.prototype.playSong = function(song, playBuild, forcePlay) { |
|
|
|
}).then(buffers => { |
|
|
|
}).then(buffers => { |
|
|
|
// To prevent race condition if you press "next" twice fast
|
|
|
|
// To prevent race condition if you press "next" twice fast
|
|
|
|
if(song != this.song) { |
|
|
|
if(song != this.song) { |
|
|
|
// Stop processing
|
|
|
|
return Promise.reject("Song changed between load and play - this message can be ignored"); |
|
|
|
throw { |
|
|
|
|
|
|
|
name: "SoundManagerRace", |
|
|
|
|
|
|
|
message: "Song not playable - ignoring!" |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.buildup = buffers.buildup; |
|
|
|
this.buildup = buffers.buildup; |
|
|
|