KYRA1: Workaround for Pool of Sorrow Adlib glitch
|Reported by:||eriktorbjorn||Owned by:|
There is a bug in the Adlib music (I'm almost entirely
sure it happens in DOSbox as well) for the "Pool of
Sorrow" which causes the channels to drift
progressively out of sync. This patch attempts to work
What it does is to add a "lock" flag to each channel,
and a bitmask to indicate which channels have to jump
If a synchronized channel is locked, its progam is no
longer executed. Once all synchronized channels are
locked, the locks are released.
This is, of course, rather experimental, so it may be
broken, need cleanups, etc.
Ticket imported from: #1533833. Ticket imported from: patches/669.