Skip to content

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

License

Notifications You must be signed in to change notification settings

chainq/midas-fpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published