Infinity: return proper size for ring buffers

git-svn-id: svn://kolibrios.org@5273 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge) 2014-12-28 12:37:33 +00:00
parent d1a5bee94f
commit 3c66f47b1e

View File

@ -303,7 +303,13 @@ align 4
align 4
.snd_getbuffsize:
test [edx+STREAM.format], PCM_RING
mov eax, [edx+STREAM.in_size]
jz @F
mov eax, [edx+STREAM.r_size]
add eax, eax
@@:
mov ecx, [edi+IOCTL.output]
mov ecx, [ecx]
mov [ecx], eax