MIDI in DOS

DOS specific questions.
Laaca
Posts: 27
Joined: Dec 31, 2007 14:24

QMIDI in FreeBasic

Post by Laaca »

Yes, it is not hard to port QMIDI into FreeBASIC. Year ago I ported it into Freepascal - the same 32-bit DPMI DOS environment. You only have to encapsulate the interrupt callings into protected mode envelope.
Landeel
Posts: 777
Joined: Jan 25, 2007 10:32
Location: Brazil
Contact:

Post by Landeel »

Hmm, very interesting.
Can you share your FreePascal code?
Laaca
Posts: 27
Joined: Dec 31, 2007 14:24

Post by Laaca »

Sure!
Look at it: http://www.laaca.borec.cz/qmidi.pas
The most important parts are encapsulated in {$IFDEF FPC} ... {$ENDIF}
Landeel
Posts: 777
Joined: Jan 25, 2007 10:32
Location: Brazil
Contact:

Post by Landeel »

Thank you!!!
I'll try to translate it to FreeBASIC.
If everything fails, I'll just try to make a static lib with FreePascal.
rugxulo
Posts: 221
Joined: Jun 30, 2006 5:31
Location: Usono (aka, USA)
Contact:

Re: MIDI in DOS

Post by rugxulo »

This isn't directly related to MIDI, but there is the updated Judas Sound System (see "contributions", 2.10c) that plays .XM, .S3M, .WAV on SB, GUS, AC97, and now (thanks to ALSA code) HDA. It compiles with DJGPP and works in pure DOS on a lot of modern machines. It's GPLv2. So if you're really interested in pure DOS sound on modern machines, it's worth investigating, IMO.
DOS386
Posts: 798
Joined: Jul 02, 2005 20:55

Re: MIDI in DOS

Post by DOS386 »

> Is it possible to port THIS to FreeBASIC?

Theoretically YES ... but:

- need to deal with segmentation vs protected mode (same as with all those old WAV players)
- will work with some old ISA cards only (similar but even worse than all those old WAV players)

> DO NOT miss those DOS days... you can keep your 'extended' v 'expanded' memory crap ;)

It's "deleted" in DOS version of FreeBASIC too ;-)

> not directly related to MIDI, but there is the updated Judas Sound System
> (see "contributions", 2.10c) that plays .XM, .S3M, .WAV on SB, GUS, AC97,
> and now (thanks to ALSA code) HDA

Right :-) ... but it doesn't play MIDI ...

to play MIDI, I'm aware of only 1 WORKING solution:

http://cubic.org/player/download.html CUBIC PLAYER + 8 MiB (!!!) PATCHES ... will write a WAV file that subsequently plays in MPXPLAY (MPXPLAY doesn't support MIDI either)

See also: http://www.bttr-software.de/forum/board ... hp?id=9134 http://jafile.com/uploads/dos386/cubrick.txt http://jafile.com/uploads/dos386/cubrick.zi7

So the ideal approach would be: pick and optimize the MIDI "decryption" code from CUBIC and merge with playing code from JUDAS or WSS/MPLAYER-DGJPP ;-)
Post Reply