Fix EMIDI looping by implementing Global Loop Start/End support.

CQTexperiment
Christopher Snowhill 2017-04-25 18:31:02 -07:00
parent e3a2d255f3
commit 0217d5dee2
1 changed files with 2 additions and 2 deletions

View File

@ -1120,9 +1120,9 @@ void midi_container::scan_for_loops( bool p_xmi_loops, bool p_marker_loops, bool
{
const midi_event & event = track[ j ];
if ( event.m_type == midi_event::control_change &&
( event.m_data[ 0 ] == 0x74 || event.m_data[ 0 ] == 0x75 ) )
( event.m_data[ 0 ] >= 0x74 && event.m_data[ 0 ] <= 0x77 ) )
{
if ( event.m_data[ 0 ] == 0x74 )
if ( event.m_data[ 0 ] == 0x74 || event.m_data[ 0 ] == 0x76 )
{
if ( m_timestamp_loop_start[ subsong ] == ~0UL || m_timestamp_loop_start[ subsong ] > event.m_timestamp )
{