mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-19 06:46:28 +01:00
Fix sound volume
This commit is contained in:
parent
8e3e2962bc
commit
fdaf8c8aab
@ -56,9 +56,9 @@ export class SoundManager extends NitroManager
|
|||||||
|
|
||||||
const volumeFurniUpdated = castedEvent.volumeFurni !== this._volumeFurni;
|
const volumeFurniUpdated = castedEvent.volumeFurni !== this._volumeFurni;
|
||||||
|
|
||||||
this._volumeSystem = castedEvent.volumeSystem;
|
this._volumeSystem = (castedEvent.volumeSystem / 100);
|
||||||
this._volumeFurni = castedEvent.volumeFurni;
|
this._volumeFurni = (castedEvent.volumeFurni / 100);
|
||||||
this._volumeTrax = castedEvent.volumeTrax;
|
this._volumeTrax = (castedEvent.volumeTrax / 100);
|
||||||
|
|
||||||
if(volumeFurniUpdated) this.updateFurniSamplesVolume(this._volumeFurni);
|
if(volumeFurniUpdated) this.updateFurniSamplesVolume(this._volumeFurni);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user