UNPKG

@animech-public/playcanvas

Version:
24 lines (21 loc) 527 B
import { DISTANCE_INVERSE } from '../../../platform/audio/constants.js'; class AudioSourceComponentData { constructor() { this.enabled = true; this.assets = []; this.activate = true; this.volume = 1; this.pitch = 1; this.loop = false; this['3d'] = true; this.minDistance = 1; this.maxDistance = 10000; this.rollOffFactor = 1; this.distanceModel = DISTANCE_INVERSE; this.paused = true; this.sources = {}; this.currentSource = null; this.channel = null; } } export { AudioSourceComponentData };