home *** CD-ROM | disk | FTP | other *** search
/ Audio 4.94 - Over 11,000 Files / audio-11000.iso / msdos / sndbords / proaudio / pcmtlsrc / pcm.arj / _I94F93.INC < prev    next >
Text File  |  1992-09-10  |  1KB  |  57 lines

  1. ;    /*\    $Author:   BCRANE  $
  2. ;    /*\    $Date:   31 Aug 1992 10:03:12  $
  3. ;    /*\    $Header:   X:/sccs/sdkapp/_i94f93.inv   1.0   31 Aug 1992 10:03:12   BCRANE  $
  4. ;    /*\    $Log:   X:/sccs/sdkapp/_i94f93.inv  $
  5. ;
  6. ;   Rev 1.0   31 Aug 1992 10:03:12   BCRANE
  7. ;Initial revision.
  8. ;    /*\    $Logfile:   X:/sccs/sdkapp/_i94f93.inv  $
  9. ;    /*\    $Modtimes$
  10. ;    /*\    $Revision:   1.0  $
  11. ;    /*\    $Workfile:   _i94f93.inc  $ 
  12.  
  13. ;; shark functions
  14. ;; dx:ax can be used to return values
  15. ;; si can be trashed
  16. ;; no other precautions taken
  17.  
  18.     if VERBOSE
  19.     align 256
  20.     db '_i94f93.inc: copyright Media Vision, Inc., 1992', 00h
  21.     endif
  22.  
  23. ;; i94f93() - return ints describing internal sound usage
  24. ;; ax returns sounds used
  25. ;; dx returns MAXHANDLES
  26.  
  27. _i94f93 proc near
  28.     push bx
  29.     push cx
  30.     push es
  31.  
  32.     mov ax, cs
  33.     mov es, ax
  34.     mov bx, offset f92buf
  35.  
  36.     xor ax, ax        ; hold bitfield describing usage
  37.     mov cx, MAXHANDLES
  38.  
  39. f93test:
  40.     test word ptr es:[bx].f92xmsh, 0FFFFh
  41.     jz @F
  42.     inc ax
  43.  
  44. @@:    add bx, type i94f92buf
  45.     loop f93test
  46.  
  47.     mov dx, MAXHANDLES
  48.  
  49.     pop es
  50.     pop cx
  51.     pop bx
  52.     ret
  53. _i94f93 endp
  54.  
  55.  
  56.  
  57.