From a1b9a5dde54e14758faa0a448d53a93629a6f50a Mon Sep 17 00:00:00 2001 From: ashley Date: Sat, 26 Aug 2023 17:55:29 -0400 Subject: [PATCH] Fix EEF envelope generation - volume was backwards --- src/reskit/soundtrack/formats/dmf.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reskit/soundtrack/formats/dmf.rs b/src/reskit/soundtrack/formats/dmf.rs index 1554626..8f7fec1 100644 --- a/src/reskit/soundtrack/formats/dmf.rs +++ b/src/reskit/soundtrack/formats/dmf.rs @@ -958,7 +958,7 @@ impl EchoFormat for DmfModule { } fn get_eef_volume( dmf_volume: u8 ) -> Result> { - Ok( min( dmf_volume, 0x0F ) ) + Ok( min( 0x0F - dmf_volume, 0x0F ) ) } fn get_eef_shift( dmf_shift: i8 ) -> Result> {