Subversion Repositories Kolibri OS

Rev

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

Rev 198 Rev 214
Line 25... Line 25...
25
OS_BASE               equ 0;  0x80400000
25
OS_BASE               equ 0;  0x80400000
26
new_app_base          equ 0x60400000;   0x01000000
26
new_app_base          equ 0x60400000;   0x01000000
27
PROC_BASE             equ OS_BASE+0x0080000
27
PROC_BASE             equ OS_BASE+0x0080000
Line 28... Line 28...
28
 
28
 
29
public START
-
 
30
public STOP
29
public START
Line 31... Line 30...
31
public service_proc
30
public service_proc
32
 
31
 
33
extrn AttachIntHandler
32
extrn AttachIntHandler
Line 71... Line 70...
71
  IOCTL IOCTL
70
  IOCTL IOCTL
72
end virtual
71
end virtual
Line 73... Line 72...
73
 
72
 
Line -... Line 73...
-
 
73
section '.flat' code readable align 16
-
 
74
 
-
 
75
proc START stdcall, state:dword
-
 
76
 
-
 
77
           mov eax, [state]
-
 
78
           cmp eax, 1
74
section '.flat' code readable align 16
79
           je .entry
75
 
80
           jmp .exit
76
START:
81
.entry:
77
           stdcall GetService, szSound
82
           stdcall GetService, szSound
78
           test eax, eax
83
           test eax, eax
Line 101... Line 106...
101
.fail:
106
.fail:
102
     if DEBUG
107
     if DEBUG
103
	   mov esi, msgFail
108
	   mov esi, msgFail
104
           call SysMsgBoardStr
109
           call SysMsgBoardStr
105
     end if
110
     end if
-
 
111
.exit:
106
	   xor eax, eax
112
	   xor eax, eax
107
	   ret
113
	   ret
Line 108... Line 114...
108
 
114
 
109
.out_of_mem:
115
.out_of_mem:
110
     if DEBUG
116
     if DEBUG
111
           mov esi, msgMem
117
           mov esi, msgMem
112
           call SysMsgBoardStr
118
           call SysMsgBoardStr
113
     end if
119
     end if
114
	   xor eax, eax
-
 
115
STOP:
120
	   xor eax, eax
-
 
121
           ret
Line 116... Line 122...
116
           ret
122
endp
117
 
123
 
118
handle     equ  IOCTL.handle
124
handle     equ  IOCTL.handle
119
io_code    equ  IOCTL.io_code
125
io_code    equ  IOCTL.io_code
Line 404... Line 410...
404
	   xor eax, eax
410
	   xor eax, eax
405
	   ret
411
	   ret
Line 406... Line 412...
406
 
412
 
Line 407... Line -...
407
endp
-
 
408
 
413
endp
409
 
414
 
Line 410... Line 415...
410
align 4
415
align 4
Line 581... Line 586...
581
.next:
586
.next:
582
	   add ebx, 4
587
	   add ebx, 4
583
	   loop .l1
588
	   loop .l1
584
.exit:
589
.exit:
585
	   ret
590
	   ret
586
 
-
 
587
.fail:
591
.fail:
588
           stdcall DestroyBuffer, esi
592
           stdcall DestroyBuffer, esi
589
           jmp .restart
593
           jmp .restart
590
endp
594
endp
Line 737... Line 741...
737
 
741
 
738
szInfinity   db 'INFINITY',0
742
szInfinity   db 'INFINITY',0
Line 739... Line 743...
739
szSound      db 'SOUND',0
743
szSound      db 'SOUND',0
740
 
744
 
741
if DEBUG
745
if DEBUG
742
msgFail      db 'Sound service not found',13,10,0
746
msgFail      db 'Sound service not loaded',13,10,0
743
msgPlay      db 'Play buffer',13,10,0
747
msgPlay      db 'Play buffer',13,10,0
744
msgStop      db 'Stop',13,10,0
748
msgStop      db 'Stop',13,10,0
745
msgUser      db 'User callback',13,10,0
749
msgUser      db 'User callback',13,10,0