From caa749508929915876dc400f3fe7f975b9686a2d Mon Sep 17 00:00:00 2001 From: Bill Date: Mon, 26 Jul 2021 23:21:40 -0400 Subject: [PATCH] Fix sound stuff --- src/core/asset/interfaces/IAssetData.ts | 2 +- .../room/object/logic/furniture/FurnitureSoundBlockLogic.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/asset/interfaces/IAssetData.ts b/src/core/asset/interfaces/IAssetData.ts index 0e5003ec..96c256bb 100644 --- a/src/core/asset/interfaces/IAssetData.ts +++ b/src/core/asset/interfaces/IAssetData.ts @@ -13,7 +13,7 @@ export interface IAssetData { logicType?: string; maskType?: string; credits?: string; - soundSample?: number; + soundSample?: { id?: number, noPitch?: boolean }; action?: { link?: string, startState?: number }; spritesheet?: ISpritesheet; dimensions?: IAssetDimension; diff --git a/src/nitro/room/object/logic/furniture/FurnitureSoundBlockLogic.ts b/src/nitro/room/object/logic/furniture/FurnitureSoundBlockLogic.ts index 8edaa255..bcec0008 100644 --- a/src/nitro/room/object/logic/furniture/FurnitureSoundBlockLogic.ts +++ b/src/nitro/room/object/logic/furniture/FurnitureSoundBlockLogic.ts @@ -44,7 +44,9 @@ export class FurnitureSoundBlockLogic extends FurnitureMultiStateLogic if(!asset.soundSample) return; - this._sampleId = asset.soundSample; + this._sampleId = asset.soundSample.id; + this._noPitch = asset.soundSample.noPitch; + this.updateModel(); }