diff --git a/sound/adlib.cpp b/sound/adlib.cpp index a2ea956d248..792617f388a 100644 --- a/sound/adlib.cpp +++ b/sound/adlib.cpp @@ -544,7 +544,7 @@ byte AdlibSoundDriver::struct10_ontimer(Struct10 *s10, Struct11 *s11) { result = 1; } } - assert(s10->num_steps>=0); + if (!--s10->num_steps) { s10->active++; if (s10->active > 4) { diff --git a/sound/fmopl.cpp b/sound/fmopl.cpp index f079a717210..55da77e7930 100644 --- a/sound/fmopl.cpp +++ b/sound/fmopl.cpp @@ -93,8 +93,6 @@ static const int slot_array[32]= -1,-1,-1,-1,-1,-1,-1,-1 }; -#pragma warning (disable: 4244) - /* key scale level */ /* table is 3dB/OCT , DV converts this in TL step at 6dB/OCT */