enyojs/enyo-1.0 — pull request #7 by ericblade (2012-03-12 07:53:28+00:00)
Title: Fix audioClass and preload attributes for Sound class

Previously, audioClass and preload were only being propagated to the underlying HTML Audio object at the creation of the Sound kind - this moves the calls to audioClassChanged and preloadChanged so that they will occur every time a new Audio kind is created via setSrc.

I think the most common implementation for audio playback of multiple files, is to use a single Sound kind that does not have a src set at creation, and then set the src dynamically. On webOS, this makes Bluetooth audio work properly, and on every system makes the preload attribute set properly, when used in those circumstances.