diff --git a/index.html b/index.html index 8c08bc9..85d5155 100644 --- a/index.html +++ b/index.html @@ -32,6 +32,7 @@ II + diff --git a/jsm/TetraScene.js b/jsm/TetraScene.js index 5f918d2..141c71b 100644 --- a/jsm/TetraScene.js +++ b/jsm/TetraScene.js @@ -21,10 +21,8 @@ export class TetraScene extends THREE.Scene { /* Sounds */ - this.music = new Audio('audio/benevolence.m4a') - this.music.loop = true - this.music.volume = settings.musicVolume / 100 - + this.music = music + const listener = new THREE.AudioListener() this.camera.add( listener ) const audioLoader = new THREE.AudioLoader(loadingManager)