djyt / cannonball

Cannonball: An Enhanced OutRun Engine
http://reassembler.blogspot.com
649 stars 116 forks source link

Music Playing Bug on MinGW #2

Closed djyt closed 11 years ago

djyt commented 11 years ago

Sometimes the YM2151 music goes wonky on the mingw build.

The bug is not always reproducible, but is most commonly found when selecting Magical Sound Shower on the music menu.

The bug appears to be caused by playing a sample simultaneously on the PCM_FX7 channel. Swapping the GETREADY sample to PCM_FX5 cures the issue.

The bug cannot be reproduced with Visual C++. Strange...

djyt commented 11 years ago

Seems to be the result of a porting bug which in turn maybe a result of uninitialized memory areas...