First post, by ih8registrations
Howdy ho, I'm back:) T'was busy with other things I was, yes, yes...
Mkay,
Canadacow, I believe you meant to refer to midi.cpp in your build instructions as the dosbox v0.58 source doesn't come with a midi.h and in midi.cpp it includes the other midi_xxx.h's, depending on platform. As well, line 96 is in the middle of a structure. The platform dependent includes are just above that. Did you intend to replace one of the os dependent headers or include midi_mt32.h afterwords? It compiles with it afterwords but wanted to clarifying your intent.
Midi_mt32.h doesn't compile on Linux without some changes.
'static partialplayed;' on line 780 is declared without a type, but since it isn't used anywhere I commented it out.
These errors:
midi_mt32.h:2175: using obsolete binding at `f'
midi_mt32.h:2481: using obsolete binding at `lf'
midi_mt32.h:2924: using obsolete binding at `p'
..
are from declaring a variable inside a for loop argument,
'for(int lf;lf<=asdf;lf++)', which gcc doesn't like. Defining the variable before hand solves the problem.
int lf;
for(lf, lf<=asdf,lf++)
You can ignore all the other warnings. Make should successfully compile after these few changes.
To run, I did a make install, which copies the exe to /usr/local/bin, extracted dosbox.zip to a directory and from there, ran 'dosbox'. but before doing so,
you have to remove dosbox.conf. I havn't figured out which setting is causing the problem yet, but the dosbox.conf that comes in the zip causes
dosbox under Linux to seg fault. Without finding a conf file, dosbox uses a default.
Oh, and from my experience, dosbox is much faster under Linux. CPU usage drops to nothing(5%) for long stretches while it's always pegged under windows(98/me). I'll have to test some more.
ps. oops, looks like I DID goof again:) Didn't see that it was an array of pointers; that would do it.
ps ps. I havn't had any luck finding a DOS utility I remember long ago that ripped MIDI songs from games. If anyone knows where one is at, point it out
if you can. I wanted to extract the songs & parse which instruments they use to see if I could find any games that use cm-32l/lapc-1's sound effects. I've found sets of ripped game midi tracks but no rip util.