nb1412m2: Fixed some Mighty Guy sound issues (#7961)
Fixed various sound issues in Mighty Guy so that it sounds almost exactly like PCB.
- Fixed BGM tempo was unstable. The frequency setting of DAC and timer clock are now linked. When changes the DAC clock, Sound driver set wait loop count ($C010) in the range of 2 to 4 in order to keep the tempo of BGM even if changed clock. This was the cause of the slow BGM in previous versions.
- Fixed DAC clock calculation. I changed this so that sound plays same as PCB.
- Implemented a protect command 0x11 to stop the DAC. This is needed to stop DAC sound when the psycho gun is stopped. |