else if (down(VOL_UP))
{
/* wait for at least 10 updates, because user may be just trying to enter menu */
- if (volpushed_frames++ > 10) {
+ if (volpushed_frames++ > 10 && (volpushed_frames&1)) {
soundvol++;
if (soundvol > 100) soundvol=100;
//FCEUI_SetSoundVolume(soundvol);
}
else if (down(VOL_DOWN))
{
- if (volpushed_frames++ > 10) {
+ if (volpushed_frames++ > 10 && (volpushed_frames&1)) {
soundvol-=1;
if (soundvol < 0) soundvol=0;
//FCEUI_SetSoundVolume(soundvol);
strcpy(kocmd, "/sbin/insmod ");
strncpy(kocmd+13, g_argv[0], 1023-13);
kocmd[1023] = 0;
- for (i = strlen(kocmd); i > 0; i--)
- if (kocmd[i] == '/') { kocmd[i] = 0; break; }
- strcat(kocmd, "/mmuhack.o");
+ for (i = strlen(kocmd); i > 13; i--)
+ if (kocmd[i] == '/') { i++; break; }
+ strcpy(kocmd+i, "mmuhack.o");
printf("Installing NK's kernel module for Squidge MMU Hack (%s)...\n", kocmd);
system(kocmd);
\r
\r
ver 0.4 (by notaz)\r
- ret 311\r
+ ret 313\r
- Improved open bus emulation, fixes missing ground in some SMB3 levels.\r
- Improved auto frameskip behavior in cases when emu is not fast\r
enough to maintain 50/60 fps.\r
- Fixed a bug which prevented some key combo configurations from working.\r
+ - Some other minor changes.\r
rev 171\r
- Added optional "Accurate renderer", which is the original FCE Ultra\r
0.98.x renderer + PPU emulation code. It's much slower, but it can\r
static void FilterSound(uint32 *in, int16 *outMono, int count)
{
// static int min=0, max=0;
+ int sh=2;
+ if (soundvol < 5) sh += 5 - soundvol;
for(;count;count--,in++,outMono++)
{
flt_acc2+= (int32) (((int64)((diff-flt_acc2)*lowp))>>16);
*in=0;
- *outMono = flt_acc2*7 >> 2; // * 1.75
+ *outMono = flt_acc2*7 >> sh; // * 7 >> 2 = * 1.75
// if (acc2 < min) { printf("min: %i %04x\n", acc2, acc2); min = acc2; }
// if (acc2 > max) { printf("max: %i %04x\n", acc2, acc2); max = acc2; }
}