CreateJS / SoundJS

A Javascript library for working with Audio. It provides a consistent API for loading and playing audio on different browsers and devices. Currently supports WebAudio, HTML5 Audio, Cordova / PhoneGap, and a Flash fallback.
http://createjs.com/
MIT License
4.42k stars 838 forks source link

Cannot play audio when passing an object as src #296

Open tehmaestro opened 6 years ago

tehmaestro commented 6 years ago

Not working: Version 1.0 (tried NEXT too) Working: 0.6.2

When registering a sound like this: window.createjs.Sound.registerSound({mp3: src}, id, data); , I cannot play the the instance. No errors, no audio.

I think that the sound is being registered with src as a string, but when calling play, src is sent as an object. So, I think that in beginPlaying , when calling SoundChannel.add , var channel = SoundChannel.get(instance.src); returns null, as instance.src is an Object.

lannymcnie commented 6 years ago

Interesting. 1.0 isn't technically much different than 0.6.2. We can check it out.