home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 19 / CD_ASCQ_19_010295.iso / dos / prg / midas / sdevice.inc < prev    next >
Text File  |  1994-08-06  |  3KB  |  119 lines

  1. ;*    SDEVICE.INC
  2. ;*
  3. ;* Sound Device definitions
  4. ;*
  5. ;* Copyright 1994 Petteri Kangaslampi and Jarno Paananen
  6. ;*
  7. ;* This file is part of the MIDAS Sound System, and may only be
  8. ;* used, modified and distributed under the terms of the MIDAS
  9. ;* Sound System license, LICENSE.TXT. By continuing to use,
  10. ;* modify or distribute this file you indicate that you have
  11. ;* read the license and understand and accept it fully.
  12. ;*
  13.  
  14. SMPMAX = 65519                ; max sample length (65536-16 - 1)
  15. MAXINSTS = 256                          ; maximum number of instruments
  16.  
  17.  
  18. ENUM    smpTypes \
  19.     smpNone = 0, \
  20.     smp8bit
  21.  
  22.  
  23. ENUM    sdPanning \
  24.     panLeft = -64, \
  25.     panMiddle = 0, \
  26.     panMono = 0, \
  27.     panRight = 64,\
  28.     panSurround = 80h
  29.  
  30.  
  31. ENUM    sdSmpPos \
  32.     sdSmpNone = 0, \
  33.     sdSmpConv, \
  34.     sdSmpEMS
  35.  
  36.  
  37. ;/***************************************************************************\
  38. ;*     enum sdMode
  39. ;*     -----------
  40. ;* Description:  Possible SoundDevice output modes
  41. ;\***************************************************************************/
  42.  
  43. ENUM    sdMode \
  44.     sdMono = 1, \
  45.     sdStereo = 2, \
  46.     sd8bit = 4, \
  47.     sd16bit = 8, \
  48.     sdLowQ = 16, \
  49.     sdNormalQ = 32, \
  50.     sdHighQ = 64
  51.  
  52.  
  53.  
  54. ;/****************************************************************************
  55. ;*     enum sdStatus
  56. ;*     -------------
  57. ;* Description:  SoundDevice status
  58. ;\****************************************************************************
  59.  
  60. ENUM    sdStatus \
  61.     sdUnInitialized = 0, \
  62.     sdOK
  63.  
  64.  
  65. ;/****************************************************************************
  66. ;*     struct SoundDevice
  67. ;*     ------------------
  68. ;* Description:  SoundDevice structure
  69. ;\****************************************************************************
  70.  
  71. STRUC    SoundDevice
  72.  
  73.     tempoPoll    DW    ?    ; 1 if Play() should be called
  74.                     ; according to the tempo, 0 if
  75.                     ; not (mixing SoundDevice)
  76.     port        DW    ?    ; base I/O port address
  77.     IRQ        DB    ?    ; IRQ number
  78.     DMA        DB    ?    ; DMA channel number
  79.     status        DW    ?    ; status (see enum above)
  80.     modes        DW    ?    ; possible SD modes (see enum)
  81.     ID        DD    ?    ; ID string (ASCIIZ)
  82.  
  83.     Detect        DD    ?
  84.     Init        DD    ?
  85.     Close        DD    ?
  86.  
  87.     GetMixRate    DD    ?
  88.     GetMode     DD    ?
  89.  
  90.     OpenChannels    DD    ?
  91.     CloseChannels    DD    ?
  92.     ClearChannels    DD    ?
  93.  
  94.     Mute        DD    ?
  95.     Pause        DD    ?
  96.  
  97.     SetMasterVolume DD    ?
  98.  
  99.     PlaySound    DD    ?
  100.     StopSound    DD    ?
  101.     SetRate     DD    ?
  102.     GetRate     DD    ?
  103.     SetVolume    DD    ?
  104.     SetInstrument    DD    ?
  105.     SetPosition    DD    ?
  106.     GetPosition    DD    ?
  107.  
  108.     SetPanning    DD    ?
  109.     GetPanning    DD    ?
  110.     MuteChannel    DD    ?
  111.  
  112.     AddInstrument    DD    ?
  113.     RemInstrument    DD    ?
  114.  
  115.     SetUpdRate    DD    ?
  116.  
  117.     Play        DD    ?
  118. ENDS
  119.