Added a package.json file to allow npm installs.
Video / GIF tweak
updated
Merge pull request #51 from ChiperSoft/master

Add a package.json file to allow npm installs.
Always default to http for IE when accessing cab file
Merge pull request #55 from dinks/master

Always default to http for IE when accessing cab file
Fix require.js compatibility, correct define() usage.
e.g.
require( ["/path/to/soundmanager2.js"], function(soundManager) {
  console.log('callback, SM2 loaded');
  soundManager.setup({
    preferFlash: false,
    url: './swf/',
    onready: function() {
      console.log('SM2 ready');
    }
  });
});
Fire onstop() also when destroying a sound

Had to go trough the source to find the "right" way to call a onstop callback when destroying a sound (which is playing)...destroySound() kills all callbacks first, then calls stop() on the sound...IMO this shouldn't be the case (and didn't cause any problem so far), e.g. it would be handy if we can rely on the onstop() callback whenever stop() on a sound is called, also when it's destroyed while playing...

right now what I have to do to reach the onstop() callback is 

```js
sound.stop();
sound.destruct();

// instead of just
sound.destruct();
```

so the change I made is just moving the callback-remover below the .stop() call...not sure if anything speaks against this, if so I'd be very interested in =)
Function overloading: soundManager.setVolume(50) now applies to all sounds vs. soundManager.setVolume('mySound', 50) - resolve #33
Reinvigorate is dead
Latest
Latest builds