home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Audio 4.94 - Over 11,000 Files
/
audio-11000.iso
/
msdos
/
sndbords
/
proaudio
/
pcmtlsrc
/
pcmtlsrc.arj
/
PCM.ARJ
/
_I94F84.INC
< prev
next >
Wrap
Text File
|
1992-08-31
|
2KB
|
110 lines
;$Author: BCRANE $
;$Date: 31 Aug 1992 09:35:20 $
;$Header: X:/sccs/sdkapp/_i94f84.inv 1.1 31 Aug 1992 09:35:20 BCRANE $
;$Log: X:/sccs/sdkapp/_i94f84.inv $
;
; Rev 1.1 31 Aug 1992 09:35:20 BCRANE
;added support for 16-bit
;
; Rev 1.0 29 Jul 1992 16:57:22 BCRANE
;Initial revision.
;$Logfile: X:/sccs/sdkapp/_i94f84.inv $
;$Modtimes$
;$Revision: 1.1 $
;$Workfile: _i94f84.inc $
;; shark functions
;; dx:ax can be used to return values
;; si can be trashed
;; no other precautions taken
if VERBOSE
align 256
db '_i94f82.inc: copyright Media Vision, Inc., 1992', 00h
endif
;; i94f84() - get internal note buffer
;; need to call i94f80 first to get segment of note buffer
;; returns ax offset to note buffer
;; returns dx size of buffer in note structures
;; new! initializes ! using es:[bx] pointing to:
;; char far *dmabuf, int size, int divs, and void far *userfunc
_i94f84 proc
mov si, 0 ; call InitMVSound
int 94h
mov si, 1 ; call InitPCM
int 94h
mov ax, 8 ; dsize
push ax
mov ax, 0 ; comp
push ax
mov ax, 0
push ax ; mono
push ax ; hi word of rate
mov ax, 11025 ; lo word of rate
push ax
mov bx, ss ; set up es:bx
mov es, bx
mov bx, sp
mov si, 2 ; call PCMInfo
int 94h
add sp, 10
mov ax, 2 ; divs
push ax
mov ax, 32 ; kays
push ax
mov ax, 0B000h ; segment
push ax
mov ax, 0 ; offset
push ax
mov bx, ss ; set up es:bx
mov es, bx
mov bx, sp
mov si, 3 ; call DMABuffer
int 94h
add sp, 8
mov ax, offset setdmaflag
push cs ; segment
push ax ; offset
mov bx, ss ; set up es:bx
mov es, bx
mov bx, sp
mov si, 4 ; call UserFunc
int 94h
add sp, 4
ret
_i94f84 endp
setdmaflag proc
push bx
push es
mov bx, cs
mov es, bx
mov bx, offset DMADONEFLAG
dec word ptr es:[bx]
jns @F
mov word ptr es:[bx], 0
@@: pop es
pop bx
retf
setdmaflag endp