From ddf1ff4eea2b2179093858938ecca72ec8acc527 Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Sun, 27 May 2012 11:01:55 +0000 Subject: [PATCH] infinity: SetTimeBase now reset internal stream position git-svn-id: svn://kolibrios.org@2694 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/drivers/infinity.asm | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/kernel/trunk/drivers/infinity.asm b/kernel/trunk/drivers/infinity.asm index ba03bc5eb7..553afbe9b5 100644 --- a/kernel/trunk/drivers/infinity.asm +++ b/kernel/trunk/drivers/infinity.asm @@ -348,13 +348,21 @@ align 4 cmp [edi+inp_size], 12 jne .fail - mov eax, [ebx] - mov ebx, [ebx+4] + mov eax, [ebx+4] + mov ebx, [ebx+8] + + pushfd + cli mov dword [edx+STREAM.time_base], eax mov dword [edx+STREAM.time_base+4], ebx xor eax, eax + mov dword [edx+STREAM.time_stamp], eax + mov dword [edx+STREAM.time_stamp+4], eax + popfd + ret +align 4 .snd_gettimestamp: cmp [edi+out_size], 8 jne .fail @@ -371,7 +379,10 @@ align 4 mov eax, esp + push ebx + push ecx push edx + push esi push edi push 4 ;.out_size @@ -386,7 +397,10 @@ align 4 add esp, 6*4 pop edi + pop esi pop edx + pop ecx + pop ebx test eax, eax jz @F