Made audio processing use less overhead.

This commit is contained in:
n-a-c-h
2005-11-26 18:52:36 +00:00
parent cd578b0e73
commit b87cc8fa79
2 changed files with 12 additions and 22 deletions

View File

@@ -1074,22 +1074,6 @@ NEWSYM StartSound
call JoyRead
ret
NEWSYM SoundProcess ; This function is called ~60 times/s at full speed
cmp byte[soundon],0
je .nosound
cmp byte[DSPDisable],1
je .nosound
mov dword[BufferSizeB],256
mov dword[BufferSizeW],512
pushad
call ProcessSoundBuffer
popad
; DSPBuffer should contain the processed buffer in the specified size
; You will have to convert/clip it to 16-bit for actual sound process
.nosound
ret
NEWSYM delay
ret