Programming Audio in the ECE291 Lab

How to play digitized sound and MIDI using the computers in our lab

John Lockwood

Playing Digitized Audio

Installing MIDPAK

  1. Unzip DMKIT.ZIP to your network drive. Be sure to preserve directories
  2. Configure your hardware
    1. Run setd to set up your audio hardware.
    2. Select 'y' to autodetect.
    3. For best results, select 'SoundBlaster Clone'
    4. Crank up the volume on the speakers and test the card.
    5. Note the base address, IRQ, and DMA listed at the bottom of the screen -- in particular, note the IRQ number -- usually 5 or 7.
    6. You should hear music (I do in the lab).
    7. Select 'y' if you hear music.
  3. Configure your MIDI
    1. Run Setm to install the midi driver
    2. Select 'adlib or compatible'
    3. Select if 'y' if you hear music. (I do in the lab)
  4. Now, you need to run the 'MIDPAK.COM' program to actually load the driver.
  5. Run the menu program to verify that midi files play. (they should)
  6. Develop your program using MIDPKAPI.DOC as a reference and the program REAL\SEGUE.C as a reference. You will need to convert the C routines into ASM.

Final Notes

John Lockwood