diff --git a/.gitignore b/.gitignore index 96ef6c0..eb1d4ef 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /target Cargo.lock +.vscode \ No newline at end of file diff --git a/src/reskit/soundtrack/engines/echo.rs b/src/reskit/soundtrack/engines/echo.rs index eb2c51c..208c821 100644 --- a/src/reskit/soundtrack/engines/echo.rs +++ b/src/reskit/soundtrack/engines/echo.rs @@ -391,7 +391,7 @@ pub fn compact_delays( events: Vec ) -> Result, Box = Vec::new(); for event in events { if let Some( esf_event_type ) = event.iter().next() { - if *esf_event_type == ESF_DELAY_SHORT || *esf_event_type == ESF_DELAY_LONG { + if *esf_event_type & 0xF0 == ESF_DELAY_SHORT || *esf_event_type == ESF_DELAY_LONG { // Continue to push delay events into current_sequence current_sequence.push( event ); } else {