Fix EEF envelope generation - volume was backwards

master
Ashley N. 2023-08-26 17:55:29 -04:00
parent 2233841eca
commit a1b9a5dde5
1 changed files with 1 additions and 1 deletions

View File

@ -958,7 +958,7 @@ impl EchoFormat for DmfModule {
} }
fn get_eef_volume( dmf_volume: u8 ) -> Result<u8, Box<dyn Error>> { fn get_eef_volume( dmf_volume: u8 ) -> Result<u8, Box<dyn Error>> {
Ok( min( dmf_volume, 0x0F ) ) Ok( min( 0x0F - dmf_volume, 0x0F ) )
} }
fn get_eef_shift( dmf_shift: i8 ) -> Result<u8, Box<dyn Error>> { fn get_eef_shift( dmf_shift: i8 ) -> Result<u8, Box<dyn Error>> {