|
|
|
@@ -9,10 +9,7 @@ |
|
|
|
<div> |
|
|
|
Many sounds by <a href="https://www.furaffinity.net/user/jeschke">Jit</a>! |
|
|
|
</div> |
|
|
|
<button v-on:click="startGlorps">Glorps</button> |
|
|
|
<button v-on:click="startDigestion">Digestion</button> |
|
|
|
<button v-on:click="startBurps">Burps</button> |
|
|
|
<button v-on:click="startGurgles">Gurgles</button> |
|
|
|
<button v-on:click="start">Start</button> |
|
|
|
<div class="soundscape"> |
|
|
|
<source-node |
|
|
|
v-for="(source, index) in sources" |
|
|
|
@@ -64,6 +61,8 @@ export default class VoreAudio extends Vue { |
|
|
|
source.start(); |
|
|
|
setInterval(() => source.tick(100), 100); |
|
|
|
|
|
|
|
source.active = false; |
|
|
|
|
|
|
|
this.sources.push(source); |
|
|
|
} |
|
|
|
|
|
|
|
@@ -103,6 +102,8 @@ export default class VoreAudio extends Vue { |
|
|
|
console.log(source); |
|
|
|
setInterval(() => source.tick(100), 100); |
|
|
|
|
|
|
|
source.active = false; |
|
|
|
|
|
|
|
this.sources.push(source); |
|
|
|
} |
|
|
|
|
|
|
|
@@ -131,7 +132,7 @@ export default class VoreAudio extends Vue { |
|
|
|
source.loadSound("gurgles/gurgle (21).ogg"); |
|
|
|
source.output.connect(this.context.destination); |
|
|
|
source.start(); |
|
|
|
source.gain.gain.value = 0.5; |
|
|
|
source.volume = 0.5; |
|
|
|
console.log(source); |
|
|
|
setInterval(() => source.tick(100), 100); |
|
|
|
|
|
|
|
@@ -142,6 +143,13 @@ export default class VoreAudio extends Vue { |
|
|
|
clearCache(); |
|
|
|
} |
|
|
|
|
|
|
|
start(): void { |
|
|
|
this.startGlorps(); |
|
|
|
this.startGurgles(); |
|
|
|
this.startDigestion(); |
|
|
|
this.startBurps(); |
|
|
|
} |
|
|
|
|
|
|
|
mounted(): void { |
|
|
|
this.context = setup(); |
|
|
|
} |
|
|
|
|