Subversion Repositories Kolibri OS

Rev

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

Rev 802 Rev 1024
Line 677... Line 677...
677
           mov eax,[edx+STREAM.out_base]
677
           mov eax,[edx+STREAM.out_base]
678
           mov [edx+STREAM.out_wp], eax
678
           mov [edx+STREAM.out_wp], eax
679
           mov [edx+STREAM.out_rp], eax
679
           mov [edx+STREAM.out_rp], eax
680
           mov [edx+STREAM.out_count], 0
680
           mov [edx+STREAM.out_count], 0
681
.fill:
681
.fill:
-
 
682
           cli
-
 
683
 
682
           mov ecx, [edx+STREAM.in_free]
684
           mov ecx, [edx+STREAM.in_free]
683
           test ecx, ecx
685
           test ecx, ecx
684
           jz .wait
686
           jz .wait
Line 685... Line 687...
685
 
687
 
Line 714... Line 716...
714
           and eax, -16
716
           and eax, -16
715
           call FpuSave
717
           call FpuSave
716
           mov [state_saved], 1
718
           mov [state_saved], 1
717
@@:
719
@@:
718
           stdcall refill, edx
720
           stdcall refill, edx
-
 
721
 
719
.skip:
722
.skip:
-
 
723
           sti
720
           mov edx, [str]
724
           mov edx, [str]
721
           mov [edx+STREAM.flags], SND_PLAY
725
           mov [edx+STREAM.flags], SND_PLAY
722
           cmp [eng_state], SND_PLAY
726
           cmp [eng_state], SND_PLAY
723
           je .main_loop
727
           je .main_loop
Line 724... Line 728...
724
 
728
 
725
           stdcall dev_play, [hSound]
729
           stdcall dev_play, [hSound]
726
           mov [eng_state], SND_PLAY
730
           mov [eng_state], SND_PLAY
727
           jmp .main_loop
731
           jmp .main_loop
-
 
732
.wait:
728
.wait:
733
           sti
729
           mov edx, [str]
734
           mov edx, [str]
730
           mov eax, [edx+STREAM.notify_event]
735
           mov eax, [edx+STREAM.notify_event]
731
           mov ebx, [edx+STREAM.notify_id]
736
           mov ebx, [edx+STREAM.notify_id]
732
           call WaitEvent   ;eax ebx
737
           call WaitEvent   ;eax ebx