チェンジセット 4179

差分発生行の前後
無視リスト:
コミット日時:
2010/08/11 18:48:04 (3 年前)
コミッタ:
yossy
ログメッセージ:

BEGameEngine: BGM をフェードさせるか設定出来るように修正

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • as3/BEGameEngine/src/org/libspark/game/engine/sound/BasicSoundManager.as

    r4134 r4179  
    6161                } 
    6262                 
    63                 public function playBGM(sound:ISoundResource, soundTransform:SoundTransform = null, position:Number = 0):void 
     63                public function playBGM(sound:ISoundResource, soundTransform:SoundTransform = null, position:Number = 0, fade:Boolean = true):void 
    6464                { 
    6565                        _queuedBGM = new SoundObject(); 
     
    6868                        _queuedBGM.position = position; 
    6969                        _queuedBGM.endless = true; 
    70                         _queuedBGM.fade = true; 
     70                        _queuedBGM.fade = fade; 
    7171                        _needsStopBGM = false; 
    7272                } 
    7373                 
    74                 public function stopBGM():void 
    75                 { 
     74                public function stopBGM(fade:Boolean = true):void 
     75                { 
     76                        if (_activeBGM != null) { 
     77                                _activeBGM.fade = fade; 
     78                        } 
    7679                        _queuedBGM = null; 
    7780                        _needsStopBGM = true; 
     
    133136                                if (_queuedBGM != null) { 
    134137                                        if (_activeBGM != null) { 
     138                                                _activeBGM.fade = _queuedBGM.fade; 
    135139                                                _activeBGM.stop(); 
    136140                                        } 
  • as3/BEGameEngine/src/org/libspark/game/engine/sound/ISoundManager.as

    r4134 r4179  
    1111                function resume():void; 
    1212                 
    13                 function playBGM(sound:ISoundResource, soundTransform:SoundTransform = null, position:Number = 0):void; 
    14                 function stopBGM():void; 
     13                function playBGM(sound:ISoundResource, soundTransform:SoundTransform = null, position:Number = 0, fade:Boolean = true):void; 
     14                function stopBGM(fade:Boolean = true):void; 
    1515                function pauseBGM():void; 
    1616                function resumeBGM():void;