MIDI in DOS
QMIDI in FreeBasic
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.
Sure!
Look at it: http://www.laaca.borec.cz/qmidi.pas
The most important parts are encapsulated in {$IFDEF FPC} ... {$ENDIF}
Look at it: http://www.laaca.borec.cz/qmidi.pas
The most important parts are encapsulated in {$IFDEF FPC} ... {$ENDIF}
Re: MIDI in DOS
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.
Re: MIDI in DOS
> 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 ;-)
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 ;-)