Changeset 447 for trunk/libjdkmidi/trunk

Show
Ignore:
Timestamp:
12/07/07 10:19:48 (12 months ago)
Author:
jeffk@…
Message:

Meta messages do not clear running status of channel messages.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/libjdkmidi/trunk/src/jdkmidi_fileread.cpp

    r8 r447  
    496496      else 
    497497      { 
    498         // TO DO: is running status to be cleared or not when meta event happens? 
    499          
    500 #if MIDIFRD_ALLOW_STATUS_ACROSS_META_EVENT 
     498        // Special thanks to "Peter Schwind" <pschwind@gmx.de>  
     499        // for the answer to the question and the fix for: 
     500        // "is running status to be cleared or not when meta event happens?" 
     501        // the answer is no. 
     502 
    501503        if(  c!=0xff ) 
    502504        { 
    503505          status=c; 
    504           running=0; 
    505           needed=0; 
    506506        } 
    507          
    508 #else 
    509         status=c; 
     507 
    510508        running=0; 
    511         needed = chantype[ (status>>4) & 0xf ];  
    512 #endif 
    513          
    514       } 
    515        
    516        
     509        needed = chantype[ (status>>4) & 0xf ];         
     510      } 
    517511       
    518512      if( needed )            // ie. is it a channel message?