WIP - Sound.file instead of Sound.path; fix issues with player; program.path is now relative

This commit is contained in:
bkfox
2022-03-18 14:12:59 +01:00
parent d17d6831dd
commit e3b744be70
17 changed files with 109 additions and 118 deletions

View File

@ -35,6 +35,11 @@ window.aircox = {
init(props=null, {config=null, builder=null, initBuilder=true,
initPlayer=true, hotReload=false}={})
{
if(initPlayer) {
let playerBuilder = this.playerBuilder
playerBuilder.mount()
}
if(initBuilder) {
builder = builder || this.builder
this.builder = builder
@ -46,11 +51,6 @@ window.aircox = {
if(hotReload)
builder.enableHotReload(hotReload)
}
if(initPlayer) {
let playerBuilder = this.playerBuilder
playerBuilder.mount()
}
},
}