SoundManager updates

This commit is contained in:
MyNameIsBatman 2021-07-04 17:08:15 -03:00
parent 89f13aeb89
commit 43f25ac472

View File

@ -111,7 +111,7 @@ export class SoundManager extends NitroManager
if(!sample) if(!sample)
{ {
const sampleUrl = Nitro.instance.getConfiguration<string>('internal.samples.url'); const sampleUrl = Nitro.instance.core.configuration.interpolate(Nitro.instance.getConfiguration<string>('sounds.url'));
sample = new Audio(sampleUrl.replace('%sample%', code)); sample = new Audio(sampleUrl.replace('%sample%', code));
this._internalSamples.add(code, sample); this._internalSamples.add(code, sample);
@ -126,7 +126,7 @@ export class SoundManager extends NitroManager
if(!sample) if(!sample)
{ {
const sampleUrl = Nitro.instance.getConfiguration<string>('external.samples.url'); const sampleUrl = Nitro.instance.core.configuration.interpolate(Nitro.instance.getConfiguration<string>('external.samples.url'));
sample = new Audio(sampleUrl.replace('%sample%', code.toString())); sample = new Audio(sampleUrl.replace('%sample%', code.toString()));
this._furniSamples.add(code, sample); this._furniSamples.add(code, sample);