## Using Your DDK

[prev][next][parent][TOC]

### Generic Audio Installation Sample

Driver Description:

The Generic Audio Installation program enables you to add audio adapter support to the MMPM/2 audio and video subsystems without having to write a separate installation DLL for each adapter.

This installation program performs the following functions:

Asks you for any information needed to install your adapter, such as the interrupt level.

Updates the CONFIG.SYS file with your DEVICE= statements and any other necessary statements.

Updates the MMPM2.INI file so that MMPM/2 recognizes your device driver.

Copies the files needed by your adapter, such as device drivers.

For more information, view the book MMPM2.INF in the DDK\DOCS directory on the CD-ROM.

Compilers/Assemblers Required:

         IBM C Set/2

Build Instructions:

1.Set the environment variables so the correct files are picked up during the build:

    e.g., SET INCLUDE=<drive>:\DDK\BASE\IBMH;%INCLUDE%
          SET LIB=<drive>:\DDK\BASE\LIB;%LIB%

Where <drive> represents your DDK installed drive and DDK represents the DDK installed directory. On the CD-ROM, the TOOLS directory path is DDK\ TOOLS.

2.Make sure the IBM C Set/2 compiler is installed and the environment variables are correctly set.

    e.g.,
      SET PATH=<IBMCdrive>:\'IBMC'\BIN;%PATH%
      SET INCLUDE=<IBMCdrive>:\'IBMC'\INCLUDE;%INCLUDE%
      SET LIB=<IBMCdrive>:\'IBMC'\LIB;%LIB%

Where <IBMCdrive> represents the IBM C Set/2 installed drive and 'IBMC' represents the IBM C Set/2 installed directory.

3.Change the directory to DDK\BASE\SRC\DEV\MME\AUDINST.

4.Invoke NMAKE on the resident makefile.

Files Created by Successful Build:

         Directory:  \DDK\BASE\SRC\DEV\MME\AUDINST

         o  CARDINFO.DLL    DLL containing data about the adapter to be installed
         o  MIDIMAP.DLL     DLL containing a MIDI Map Table
         o  AUDHELP.HLP     HELP file containing help for installing Audio adapter