Hello

I'm currently using the latest version of the M1 source code as downloaded from this forum. I've successfully compiled it for Linux Mint 64-bit. I have PusleAudio disabled on my system and am using the ALSA output.

I have noticed a couple of bugs with the program. One bug is the naming of the files for the wave logging, they are out of sequence. I fixed this by a simple modification of the m1snd_run function in m1.snd.cpp. Inside the M1_CMD_SONGJMP case, I moved the line "cmd1=parm" to immediately after the call of waveLogStop instead of after WaveLogStart:


DLLEXPORT int m1snd_run(int command, int iparm)
{
.
.
.
if (b_pause)
{
flushframes = 2;
}

waveLogStop();
cmd1 = iparm;

waveLogInit(wavelog, games[curgame].zipname, iparm);
waveLogStart();

if (cur_board)
{
.
.
.
}
.
.
.
}


The second bug I am stuck on and would greatly appreciate any ideas. Approximately the first 0.4 seconds of a song are omitted. This happens with every song I have tried so far, including the songs in OutRun and Super Hang-On. The missing part is audible during normal playback and with the logged wave. The missing part can be confirmed by comparing the M1 wave log to the wave log of VGMPlay.

I tried the SDL driver, but it did not help. I haven't tried PulseAudio yet (that would require re-enabling it). Can anybody confirm this problem with their setup?

Many thanks