Removed webpack for gulp again because its simpler for a project this size.

This commit is contained in:
firebingo 2019-05-13 13:16:40 -07:00
parent 77fc6e4d69
commit d4e96c66a8
15 changed files with 9062 additions and 14328 deletions

View file

@ -1,7 +1,5 @@
//(Math.exp(x)-1)/(Math.E-1)
import bgmLoopData from './BgmLoop.json';
class bufferLoader {
constructor(context, soundMap, callback) {
this.context = context;
@ -96,8 +94,8 @@ class audioController {
source.buffer = this.loader.bufferList[sound];
source.loop = false;
if(type === "bgm") {
if(bgmLoopData[this.utage.soundInfo[sound].origFileName]) {
let loop = bgmLoopData[this.utage.soundInfo[sound].origFileName];
if(this.utage.bgmLoopData[this.utage.soundInfo[sound].origFileName]) {
let loop = this.utage.bgmLoopData[this.utage.soundInfo[sound].origFileName];
source.loopStart = loop["loop_start"]["seconds"];
source.loopEnd = loop["loop_end"]["seconds"];
source.loop = true;
@ -184,5 +182,3 @@ class audioController {
this.sources = {};
}
}
export { audioController };