polpo / picogus

Emulation of ISA sound cards on Raspberry Pi Pico (GUS, Adlib, MPU-401, Tandy, CMS)
GNU General Public License v2.0
518 stars 34 forks source link

Update emu8950.c #47

Closed TerryFi closed 1 month ago

TerryFi commented 1 month ago

Fix for https://github.com/polpo/picogus/issues/46 Attack step is 0 for eg_rate_h 15 causing envelop never switch to decay, causing some music missing notes in higher notes. For fix, step value 0 is treated as special case resetting eg_out to 0 which immediately switches envelop generator to decay.

polpo commented 1 month ago

Thank you very much for fixing this!!