Show
Ignore:
Timestamp:
09/15/08 17:30:13 (4 months ago)
Author:
tekisuke
Message:

lang/actionscript/flmml/: ゲートタイム指定2 @q。偽TCPの仕様をよく見たら間違っていたので修正。

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/actionscript/flmml/trunk/src/com/txt_nifty/sketch/flmml/MTrack.as

    r19331 r19332  
    2828            m_volume             = 100; 
    2929            recGate(15/16); 
     30            recGate2(0); 
    3031            m_events             = new Array(); 
    3132            m_pointer = 0; 
     
    197198            if (keyoff) { 
    198199                var gate:int; 
    199                 gate = (m_gate2 < 0) ? (int)(len * m_gate) : (len - m_gate2); 
     200                gate = (int)(len * m_gate) - m_gate2; 
    200201                if (gate <= 0) gate = 0; 
    201202                seek(gate); 
     
    258259        public function recGate(gate:Number):void { 
    259260            m_gate = gate; 
    260             m_gate2 = -1; 
    261261        } 
    262262 
    263263        public function recGate2(gate2:int):void { 
     264            if (gate2 < 0) gate2 = 0; 
    264265            m_gate2 = gate2; 
    265266        }