Remove coremod definitions in VC++ makefile

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Cosmetic changes

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Don't use sample volume in MED synth instruments

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Cosmetic indent changes

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Honor OctaMED V5 sample transpose flags

Reported by Andreas Argirakis, see amience.mmd2.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Prevent double free for m->dirname

It typically happens when playing a module loaded from memory after having
played a module loaded from the filesystem, using the same context.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Don't transpose extra 2 octaves in MMD3

In MMD2, default pitch is applied to transpose instruments two extra
octaves up. This doesn't seem to be the case in MMD3. See amience.mmd2
vs r-type.mmd3.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Fix sample loops in old Soundtracker modules

from:	 Dennis Lindroos denafcm@gmail.com
to:	 cmatsuoka@gmail.com
date:	 Mon, Mar 3, 2014 at 8:35 AM
subject: libxmp st15 looped samples

(...)
I just thought i could contribute, and one thing is the support for old
ST15 formats which i know quite well after doing some research a few
years ago.

One main thing is sample-looping which on all trackers up to Noisetracker 1
(i think it was Mahoney who actually changed the loopstart to be in WORDS)
never play looped samples from the beginning, i.e. only plays the looped part.
This can be heard in old modules especially with "analogstring", "strings2"
or "strings3" samples because these have "slow attack" that is not part of
the loop and thus they sound "sharper"..

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Include malloc.h header for _alloca in win32

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Fix win64 portability warning

Reported by Ozkan Sezer <sezeroz@gmail.com>:

There are also warnings wherever list_entry() macro is used, such as:

src/load.c: In function 'unlink_tempfiles':
src/load.c:404:8: warning: cast from pointer to integer of different size

... or:

options.c: In function 'usage':
options.c:52:8: warning: cast from pointer to integer of different size
options.c:57:8: warning: cast from pointer to integer of different size

... which may be cured by changing (unsigned long) cast with (size_t)

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>