소스 검색

Audio is loaded from a story-specific directory

tags/v0.1.0
Fen Dweller 6 년 전
부모
커밋
dbebcd3d87
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. +3
    -2
      audio.js

+ 3
- 2
audio.js 파일 보기

@@ -6,7 +6,7 @@ let waiting = {};
let audioContext;
let gainControl;

const audioBaseUrl = "./media/audio/";
let audioBaseUrl;

let audioDict = {};

@@ -235,9 +235,10 @@ function initAudio(story, state) {
gainControl.connect(audioContext.destination);
}


createCache();

audioBaseUrl = "./media/" + story.id + "/audio/";

story.sounds.forEach(sound => {
loadAudio(sound);
});


불러오는 중...
취소
저장