Skip to content

Commit

Permalink
Null flash sound object check for setVolume/setPan case when using au…
Browse files Browse the repository at this point in the history
…toLoad:true/autoPlay:true/volume:x within createSound() (only for NetStream content?) - http://getsatisfaction.com/schillmania/topics/netstream_broken
  • Loading branch information
Scott Schiller committed Sep 10, 2010
1 parent eef5db7 commit 0867fd6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/SoundManager2_AS3.as
Original file line number Diff line number Diff line change
Expand Up @@ -1111,12 +1111,16 @@ package {
}

public function _setPan(sID:String, nPan:Number) : void {
soundObjects[sID].setPan(nPan);
if (soundObjects[sID]) {
soundObjects[sID].setPan(nPan);
}
}

public function _setVolume(sID:String, nVol:Number) : void {
// writeDebug('_setVolume: '+nVol);
soundObjects[sID].setVolume(nVol);
if (soundObjects[sID]) {
soundObjects[sID].setVolume(nVol);
}
}

public function _setPolling(bPolling: Boolean = false, bUseHighPerformanceTimer: Boolean = false) : void {
Expand Down
Binary file modified swf/soundmanager2_flash9.swf
Binary file not shown.
Binary file modified swf/soundmanager2_flash9_debug.swf
Binary file not shown.

0 comments on commit 0867fd6

Please sign in to comment.