I assume you mean that you want the raw AudioBuffer that is loaded.
There is no official way to do this in SoundJS 1.0 (we are exposing a lot more in 2.0, which you can see in the in-progress branch in Git).
However, you can access all the buffers that are loaded using:
var plugin = createjs.Sound.activePlugin; // The WebAudioPlugin
var buffer = plugin._audioSources[url];
Additionally, there is even more info, including the raw Array Buffer, buried in the load items that SoundJS stores.
var loader = plugin._loaders[url];
var buffer = loader.rawResult;
Unfortunately there is no clean way to get the buffer from a sound instance.
You listen to the "fileload" event, you can get the src directly from the event:
createjs.Sound.on("fileload", handleFileLoad);
createjs.Sound.registerSound("https://s3-us-west-2.amazonaws.com/s.cdpn.io/1524180/MK21.mp3", "music");
function handleFileLoad(event) {
var src = event.src;
// Use whatever approach to get the Array or Audio buffer
}
Or get the src from a play()
call:
var inst = createjs.Sound.play("music");
var src = inst.src;
I hope that helps!