UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

30 lines (25 loc) 548 B
/** * Base class for all audio clips */ export class AbstractAudioClip { /** * Parent clip, if set - will propagate various parameters to the child at play-time * @type {null} */ parent = null; /** * Relative offset from source * @type {number} */ pitch = 0; /** * Gain offset in decibel * @type {number} */ gain = 0; /** * Output channel, if not set - will use a settings from parent * @type {null} */ channel = null; }