Fix sound volume

This commit is contained in:
Bill 2021-08-30 19:04:21 -04:00
parent 8e3e2962bc
commit fdaf8c8aab

View File

@ -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;