Removed webpack for gulp again because its simpler for a project this size.
This commit is contained in:
parent
77fc6e4d69
commit
d4e96c66a8
15 changed files with 9062 additions and 14328 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue