home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / PROGRAMM / BLAST13.ZIP / DIRECT.DOC < prev    next >
Text File  |  1991-07-11  |  872b  |  45 lines

  1. /*
  2.  
  3.             Turbo C Direct Access Interface
  4.  
  5.                 by    Joel Lucsy
  6.  
  7.           Vroom-Diggy-Diggy Software, (c) 1991
  8.  
  9.  
  10. Defined Macros:
  11.  
  12.      SBOK        Return value indicating success from reset_dsp.
  13.  
  14.  
  15. Functions Defined For Direct Access:
  16.  
  17.      int reset_dsp(void)
  18.         -Resets the DSP. Do this before calling any direct access routines.
  19.         -Returns SBOK if able to reset.
  20.  
  21.  
  22.      int read_data(void)
  23.     -Returns data from D-A converter.
  24.  
  25.  
  26.      void write_data(void)
  27.     -Writes data to the A-D converter.
  28.     -Speaker_on must be called first in order to hear the sound.
  29.  
  30.  
  31.      void speaker_on(void)
  32.     -Turns on the speaker.
  33.  
  34.  
  35.      void speaker_off(void)
  36.     -Turns off the speaker.
  37.  
  38.  
  39.      void asmdelay(int delay)
  40.     -A delay for timing output, more usefull than Turbo C's delay.
  41.  
  42.  
  43.        ** Sound Blaster is a copyright of Creative Labs, Inc. **
  44. */
  45.