UNPKG

@pixi/animate

Version:

PIXI plugin for the PixiAnimate Extension

1 lines 600 B
{"version":3,"file":"sound.mjs","sources":["../../src/animate/sound.ts"],"sourcesContent":["import { EventEmitter } from '@pixi/utils';\n/**\n * @description Event emitter for all sound events. This emits a single\n * `play` event which contains the alias, loop and MovieClip which is playing\n * the sound.\n * @example\n *\n * PIXI.animate.sound.on('play', (alias, loop, context) => {\n * // custom handle sounds being played\n * // where 'alias' is the ID in stage assets\n * });\n */\nexport const sound = new EventEmitter();\n"],"names":[],"mappings":";;AAYa,MAAA,KAAA,GAAQ,IAAI,YAAa;;;;"}