This page is work-in-progress. You can reach me on twitter or mail to rezoner1337@gmail.com

Aliases

Use an alias to create a new sound from existing one. It doesn't duplicate memory usage as it uses the same sound buffer as original.

this.audio.alias(newKey, sourceKey, rate, volume);

Example:

this.audio.alias("bigExplosion", "explosion", "0.6", "1.0");

this.audio.channel("game").play("bigExplosion");

Ask question:

Fork me on GitHub