initialize audioPlayer on reload

dependencies hashes:
openFrameworks d78075f4bca6be2a2533c6e51a75cc1f18404501
ofxMsdfgen e14da13d02c4dff04fb69d7923469f606924e6c3
ofxGPUFont d482bb7cbdf6b296fa4ab5abcf73fb5ff8c8b239
ofxVariableLab 0b5f9bdebc1e5550621957e73c040c258ec6317b
ofxProfiler a868e34fa1a79189dd4fbdede2938e308535e5e8
theatre 15b2b9543be7a9ed5c8889e04df715f91d479d45
This commit is contained in:
themancalledjakob 2024-04-14 11:33:15 +02:00
parent 8075cf2b16
commit 8353bb837c

View file

@ -761,6 +761,7 @@ const TheatrePlay = function(autoInit = false) {
}); });
if (typeof project['audioPlayerElements'] === 'object') { if (typeof project['audioPlayerElements'] === 'object') {
audio.audioPlayer.addMany(project['audioPlayerElements']); audio.audioPlayer.addMany(project['audioPlayerElements']);
audio.audioPlayer.init();
} }
if (typeof project['audioLayers'] === 'object') { if (typeof project['audioLayers'] === 'object') {
const audioLayerIDs = Object.keys(project['audioLayers']); const audioLayerIDs = Object.keys(project['audioLayers']);