Skip to content

Commit

Permalink
Merge pull request #38 from Shraymonks/V2.97a.20130512+DEV
Browse files Browse the repository at this point in the history
V2.97a.20130512+dev
  • Loading branch information
scottschiller committed Nov 9, 2013
2 parents 5fc6faa + 9637326 commit 7a33be2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions script/soundmanager2.js
Expand Up @@ -2047,7 +2047,7 @@ function SoundManager(smURL, smID) {
}

// playing multiple muted sounds? if you do this, you're weird ;) - but let's cover it.
if (s._iO.muted) {
if (s.muted) {
audioClone.muted = true;
}

Expand Down Expand Up @@ -2437,6 +2437,10 @@ function SoundManager(smURL, smID) {
if (!s.isHTML5) {
flash._setVolume(s.id, (sm2.muted && !s.muted) || s.muted?0:nVol);
} else if (s._a) {
if (sm2.muted && !s.muted) {
s.muted = true;
s._a.muted = true;
}
// valid range: 0-1
s._a.volume = Math.max(0, Math.min(1, nVol/100));
}
Expand Down Expand Up @@ -5971,4 +5975,4 @@ if (window.SM2_DEFER === undefined || !SM2_DEFER) {
window.SoundManager = SoundManager; // constructor
window.soundManager = soundManager; // public API, flash callbacks etc.

}(window));
}(window));

0 comments on commit 7a33be2

Please sign in to comment.