danzen / zimjs

ZIM JavaScript Canvas Framework - Code Creativity! Interactive Media For All.
Other
507 stars 47 forks source link

Request for AudioSprite Support #16

Closed danzen closed 7 years ago

danzen commented 7 years ago

Bart Libert 1:22 AM

Hereby I would like to add a feature request for AudioSprite support, because this feature dramatically decreases load times for projects with multiple audio files and lots of very small files. Like game sound effects or narrator words/interface sounds . These are all very small files, but each take the overhead of 1 single load for each file (which is quite a lot of overhead and time lost) . By loading them all in 1 larger file and defining sections as audioSprites, you can get compact project with all sound in 1 file. I hope this feature request could make the release because audio is as important as gfx nowadays t make interactive material (but I'm pretty confident that it will most probably make it since you update ZIM at a record tempo :wink: ) - Bart on Slack.

danzen commented 7 years ago

http://zimjs.com/code/bubbling/audiofile.html done with an example.