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(); }