mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-23 08:00:51 +01:00
SoundManager updates
This commit is contained in:
parent
89f13aeb89
commit
43f25ac472
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user