mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-22 23:50:52 +01:00
SoundManager updates
This commit is contained in:
parent
89f13aeb89
commit
43f25ac472
@ -111,7 +111,7 @@ export class SoundManager extends NitroManager
|
||||
|
||||
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));
|
||||
this._internalSamples.add(code, sample);
|
||||
@ -126,7 +126,7 @@ export class SoundManager extends NitroManager
|
||||
|
||||
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()));
|
||||
this._furniSamples.add(code, sample);
|
||||
|
Loading…
Reference in New Issue
Block a user