home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / pascal / library / dos / sound / digpak / sbdrv.int < prev    next >
Encoding:
Text File  |  1994-02-21  |  1.0 KB  |  27 lines

  1. UNIT SBDRV;
  2.  
  3.  
  4. { THESE ARE THE PROCEDURES IN THE INTERFACE SECTION OF THE SBDRV unit }
  5. { These are called AUTOMATICALLY in the startup and exit code of the  }
  6. { SBAPI unit and DO NOT need to be called by your program. }
  7.  
  8. { Tells the driver what Port address and IRQ the Sound Blaster card is }
  9. { using.  A detection function is provide in SBAPI }
  10. PROCEDURE PokeBlaster(PortBase,IRQ : Word); 
  11.  
  12. { Returns the far address of the driver }
  13. { Development note:  If this address is not Paragraph aligned }
  14. { i.e. divisible by 16 evenly.  The driver load will fail !!  }
  15. { The Pascal link procedure does not always respect Paragraph }
  16. { alignment directives in OBJ files which is why the driver   }
  17. { code and API code for the driver ended up in seperate units.}
  18. FUNCTION ReportSB : Pointer;
  19.  
  20. { Calls the driver install procedure given the address of the driver }
  21. FUNCTION LoadSoundDriver(DrvAddr : Pointer) : BOOLEAN; 
  22.  
  23. { Unloads the driver if loaded previously otherwise returns with out effect}
  24. PROCEDURE UnloadSoundDriver;
  25.  
  26. END.
  27.