UNPKG

sb-edit

Version:

Import, edit, and export Scratch project files

21 lines (20 loc) 752 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var id_1 = require("./util/id"); var Sound = /** @class */ (function () { function Sound(options) { var _a, _b, _c; this.name = options.name; this.id = (_a = options.id) !== null && _a !== void 0 ? _a : (0, id_1.generateId)(); this.asset = options.asset; this.md5 = options.md5; this.ext = options.ext; this.sampleCount = (_b = options.sampleCount) !== null && _b !== void 0 ? _b : null; this.sampleRate = (_c = options.sampleRate) !== null && _c !== void 0 ? _c : null; } Sound.prototype.setName = function (name) { this.name = name; }; return Sound; }()); exports.default = Sound;