From 43f25ac47201abd0d635574d7a005e8acda67533 Mon Sep 17 00:00:00 2001 From: MyNameIsBatman Date: Sun, 4 Jul 2021 17:08:15 -0300 Subject: [PATCH] SoundManager updates --- src/nitro/sound/SoundManager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nitro/sound/SoundManager.ts b/src/nitro/sound/SoundManager.ts index 6e370067..061cce65 100644 --- a/src/nitro/sound/SoundManager.ts +++ b/src/nitro/sound/SoundManager.ts @@ -111,7 +111,7 @@ export class SoundManager extends NitroManager if(!sample) { - const sampleUrl = Nitro.instance.getConfiguration('internal.samples.url'); + const sampleUrl = Nitro.instance.core.configuration.interpolate(Nitro.instance.getConfiguration('sounds.url')); sample = new Audio(sampleUrl.replace('%sample%', code)); this._internalSamples.add(code, sample); @@ -126,7 +126,7 @@ export class SoundManager extends NitroManager if(!sample) { - const sampleUrl = Nitro.instance.getConfiguration('external.samples.url'); + const sampleUrl = Nitro.instance.core.configuration.interpolate(Nitro.instance.getConfiguration('external.samples.url')); sample = new Audio(sampleUrl.replace('%sample%', code.toString())); this._furniSamples.add(code, sample);