UNPKG

playcanvas

Version:

Open-source WebGL/WebGPU 3D engine for the web

13 lines (12 loc) 166 B
class Sound { buffer; constructor(buffer) { this.buffer = buffer; } get duration() { return this.buffer && this.buffer.duration || 0; } } export { Sound };