Subversion Repositories Kolibri OS

Rev

Rev 561 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 561 Rev 567
Line 319... Line 319...
319
           test eax, PCM_OUT
319
           test eax, PCM_OUT
320
           jnz .test_out
320
           jnz .test_out
321
           test eax, PCM_RING
321
           test eax, PCM_RING
322
           jnz .test_ring
322
           jnz .test_ring
323
;staic
323
;staic
-
 
324
           test eax, PCM_STATIC
-
 
325
           jz .fail
324
           test eax, PCM_OUT+PCM_RING
326
           test eax, PCM_OUT+PCM_RING
325
           jnz .fail
327
           jnz .fail
326
           jmp .test_ok
328
           jmp .test_ok
327
.test_out:
329
.test_out:
328
           test eax, PCM_RING+PCM_STATIC
330
           test eax, PCM_RING+PCM_STATIC
Line 752... Line 754...
752
           rep stosd
754
           rep stosd
Line 753... Line 755...
753
 
755
 
754
           mov [edx+STREAM.in_wp], edi
756
           mov [edx+STREAM.in_wp], edi
Line -... Line 757...
-
 
757
           mov [edx+STREAM.in_rp], edi
-
 
758
 
755
           mov [edx+STREAM.in_rp], edi
759
           test [edx+STREAM.flags], PCM_STATIC
-
 
760
           jnz .static
-
 
761
           mov [edx+STREAM.in_count], 0
-
 
762
           jmp @F
-
 
763
.static:
-
 
764
           mov eax, [edx+STREAM.in_size]
-
 
765
           mov [edx+STREAM.in_count], eax
756
 
766
@@:
757
           mov [edx+STREAM.in_count], 0
767
 
758
           mov eax, [edx+STREAM.in_size]
768
           mov eax, [edx+STREAM.in_size]
Line 759... Line 769...
759
           sub eax, 128
769
           sub eax, 128
Line 805... Line 815...
805
           mov edx, [str]
815
           mov edx, [str]
806
           test [edx+STREAM.format], PCM_OUT+PCM_RING
816
           test [edx+STREAM.format], PCM_OUT+PCM_RING
807
           jnz .fail
817
           jnz .fail
Line 808... Line 818...
808
 
818
 
-
 
819
           mov ebx, [edx+STREAM.in_rp]
-
 
820
           sub ebx, [edx+STREAM.in_base]
809
           mov ebx, [edx+STREAM.in_rp]
821
           sub ebx, 128
810
           xor eax, eax
822
           xor eax, eax
811
           ret
823
           ret
812
.fail:
824
.fail:
813
           xor ebx,ebx
825
           xor ebx,ebx
Line 965... Line 977...
965
.fail:
977
.fail:
966
           or eax, -1
978
           or eax, -1
967
           ret
979
           ret
968
endp
980
endp
Line 969... Line 981...
969
 
981
 
Line 970... Line 982...
970
; for static buffers only
982
; for static and ring buffers only
971
 
983
 
Line 972... Line 984...
972
align 4
984
align 4