chainq / midas-fpc

Hack which allows using the MIDAS Sound System from a Free Pascal/go32v2 program

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MIDAS to Free Pascal/go32v2

This tiny piece of code allows linkinglibmidas.a from MIDAS Sound System (a.k.a Housemarque Audio System) against Free Pascal/go32v2 code, and it allows it without also linking against DJGPP's libc.a and liballegro.a, simplifying the linking process and preventing potential interoperability issues with other Pascal code accessing hardware or DPMI services directly.

The libc and IRQ handler stubs included in this repository provide just enough functionality to put some music in your oldschool DOS demo, or game, but extending it to support the full MIDAS API in theory should be possible.

Only tested with recent Free Pascal 3.3.1 trunk version. Needs external i386-go32v2-binutils.

Note that using MIDAS/HMQAudio is free, but only for non commercial applications. See more details on the HMQAudio homepage.

Credits

The IRQ stub code was ripped from Allegro v4 and was heavily modified to work with Free Pascal. The IRQ setup/release code was ported from the C version in Allegro v4.

Links and references

About

Hack which allows using the MIDAS Sound System from a Free Pascal/go32v2 program

License:Do What The F*ck You Want To Public License


Languages

Language:Pascal 87.6%Language:Assembly 11.2%Language:Shell 1.2%