mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2025-01-18 22:36:27 +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;
|
||||
|
||||
this._volumeSystem = castedEvent.volumeSystem;
|
||||
this._volumeFurni = castedEvent.volumeFurni;
|
||||
this._volumeTrax = castedEvent.volumeTrax;
|
||||
this._volumeSystem = (castedEvent.volumeSystem / 100);
|
||||
this._volumeFurni = (castedEvent.volumeFurni / 100);
|
||||
this._volumeTrax = (castedEvent.volumeTrax / 100);
|
||||
|
||||
if(volumeFurniUpdated) this.updateFurniSamplesVolume(this._volumeFurni);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user