Here's a bug that's been in FBA for quite some time now (since 0.2.95.21 IIRC). Basically, if you run a game, click "Sound disabled", and then run a CPS game with Q-Sound (every cps2 game & some cps1), FBA crashes. ^^. I don't remember if anyone's come up with a fix for it, so here's mine.
src/burn/capcom/qs_c.cpp
After:
#include "burn_sound.h"
Add this:
extern int nAudSampleRate;
After:
int QscUpdate(int nEnd)
{
int nLen;
if (nEnd > nBurnSoundLen) {
nEnd = nBurnSoundLen;
}
nLen = nEnd - nPos;
if (nLen <= 0) {
return 0;
}
Add this:
if (nAudSampleRate <= 0) // Fix "Sound disabled" crash on CPS-2
return 0;
That's it. ^^