Subversion Repositories Kolibri OS

Rev

Rev 5253 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5253 Rev 5274
Line 146... Line 146...
146
	mcall	68,17
146
	mcall	68,17
147
	add	esp,24       ;io_cintrol 
147
	add	esp,24       ;io_cintrol 
148
	pop	ecx ebx
148
	pop	ecx ebx
149
	ret	12
149
	ret	12
150
;------------------------------------------------------------------------------
150
;------------------------------------------------------------------------------
-
 
151
;align 4
-
 
152
;_DestroyBuffer@4:     ;str:dword
-
 
153
;	push	ebx ecx
-
 
154
;	xor	eax,eax
-
 
155
;	lea	ebx,[esp+12]   ;[stream]
-
 
156
;	
-
 
157
;	push	eax            ;.out_size
-
 
158
;	push	eax            ;.output
-
 
159
;	push	4              ;.inp_size
-
 
160
;	push	ebx            ;.input
-
 
161
;	push	SND_DESTROY_BUFF;.code
-
 
162
;	push	[hSound]       ;.handle
-
 
163
;	
-
 
164
;	mov	ecx, esp        ;[handle]
-
 
165
;	mcall	68,17
-
 
166
;	add	esp,24
-
 
167
;	pop	ecx ebx
-
 
168
;	ret	4
-
 
169
;------------------------------------------------------------------------------
-
 
170
;align 4
-
 
171
;_WaveOut@12:        ;str:dword, src:dword, size:dword
-
 
172
;	push	ebx ecx
-
 
173
;	xor	eax,eax
-
 
174
;	lea	ebx,[esp+12]   ;[stream]
-
 
175
;	
-
 
176
;	push	eax            ;.out_size
-
 
177
;	push	eax            ;.output
-
 
178
;	push	12             ;.inp_size
-
 
179
;	push	ebx            ;.input
-
 
180
;	push	SND_OUT        ;.code
-
 
181
;	push	dword [hSound] ;.handle
-
 
182
;	
-
 
183
;	mov	ecx,esp
-
 
184
;	mcall	68,17
-
 
185
;	add	esp,24
-
 
186
;	pop	ecx ebx
-
 
187
;	ret	12
-
 
188
;------------------------------------------------------------------------------
151
align 4
189
align 4
152
_DestroyBuffer@4:     ;str:dword
190
_GetBufferSize@8:      ;str:dword, p_size:dword
-
 
191
	push	ebx ecx
-
 
192
	lea	eax,[esp+16]
-
 
193
	lea	ebx,[esp+12]   ;[stream]
-
 
194
	
-
 
195
	push	4              ;.out_size
-
 
196
	push	eax            ;.output
-
 
197
	push	4              ;.inp_size
-
 
198
	push	ebx            ;.input
-
 
199
	push	SND_GETBUFFSIZE;.code
-
 
200
	push	dword [hSound] ;.handle
-
 
201
	
-
 
202
	mov	ecx,esp
-
 
203
	mcall	68,17
-
 
204
	add	esp,24
-
 
205
	pop	ecx ebx
-
 
206
	ret	8
-
 
207
;------------------------------------------------------------------------------           
-
 
208
;align 4
-
 
209
;_GetBufferFree@8:      ;str:dword, p_free:dword
-
 
210
;	push	ebx ecx
-
 
211
;	lea	ebx,[esp+12]      ;[stream]
-
 
212
;	push	0                 ;storage for free_space    
-
 
213
;	mov	eax,esp
-
 
214
;	
-
 
215
;	push	4                 ;.out_size
-
 
216
;	push	eax               ;.output
-
 
217
;	push	4                 ;.inp_size
-
 
218
;	push	ebx               ;.input
-
 
219
;	push	SND_GETFREESPACE  ;.code
-
 
220
;	push	dword [hSound]    ;.handle
-
 
221
;	
-
 
222
;	mov	ecx,esp
-
 
223
;	mcall	68,17
-
 
224
;	add	esp, 24
-
 
225
;	mov	ecx,[esp+20]      ; p_free  
-
 
226
;	pop	dword [ecx]
-
 
227
;	pop	ecx ebx
-
 
228
;	ret	8
-
 
229
;------------------------------------------------------------------------------
-
 
230
align 4
-
 
231
_SetBuffer@16:   ;str:dword, src:dword, offs:dword, size:dword
153
	push	ebx ecx
232
	push	ebx ecx
154
	xor	eax,eax
233
	xor	eax,eax
155
	lea	ebx,[esp+12]   ;[stream]
234
	lea	ebx,[esp+12]   ;[stream]
Line 156... Line 235...
156
	
235
 
157
	push	eax            ;.out_size
236
	push	eax            ;.out_size
158
	push	eax            ;.output
237
	push	eax            ;.output
159
	push	4              ;.inp_size
238
	push	16             ;.inp_size
160
	push	ebx            ;.input
239
	push	ebx            ;.input
161
	push	SND_DESTROY_BUFF;.code
240
	push	SND_SETBUFF    ;.code
Line 162... Line 241...
162
	push	[hSound]       ;.handle
241
	push	dword [hSound] ;.handle
163
	
242
 
164
	mov	ecx, esp        ;[handle]
243
	mov	ecx,esp
165
	mcall	68,17
244
	mcall	68,17
166
	add	esp,24
245
	add	esp,24
167
	pop	ecx ebx
246
	pop	ecx ebx
168
	ret	4
247
	ret	16
169
;------------------------------------------------------------------------------
248
;------------------------------------------------------------------------------
170
align 4
249
align 4
171
_WaveOut@12:        ;str:dword, src:dword, size:dword
250
_PlayBuffer@8:          ;str:dword,flags:dword
172
	push	ebx ecx
251
	push	ebx ecx
Line 173... Line 252...
173
	xor	eax,eax
252
	xor	eax,eax
174
	lea	ebx,[esp+12]   ;[stream]
253
	lea	ebx,[esp+12]   ;[stream]
175
	
254
	
176
	push	eax            ;.out_size
255
	push	eax            ;.out_size
177
	push	eax            ;.output
256
	push	eax            ;.output
178
	push	12             ;.inp_size
257
	push	8              ;.inp_size
Line 179... Line 258...
179
	push	ebx            ;.input
258
	push	ebx            ;.input
180
	push	SND_OUT        ;.code
259
	push	SND_PLAY       ;.code
181
	push	dword [hSound] ;.handle
260
	push	dword [hSound] ;.handle
182
	
261
 
183
	mov	ecx,esp
262
	mov	ecx, esp
-
 
263
	mcall	68,17
-
 
264
	add	esp, 24
-
 
265
	pop	ecx ebx
-
 
266
	ret	8
-
 
267
;------------------------------------------------------------------------------
-
 
268
align 4
-
 
269
_StopBuffer@4:          ;str:dword
-
 
270
	push	ebx ecx
-
 
271
	xor	eax,eax
-
 
272
	lea	ebx,[esp+12]   ;[stream]
-
 
273
	
-
 
274
	push	eax            ;.out_size
-
 
275
	push	eax            ;.output
-
 
276
	push	4              ;.inp_size
-
 
277
	push	ebx            ;.input
-
 
278
	push	SND_STOP       ;.code
-
 
279
	push	dword [hSound] ;.handle
-
 
280
	
-
 
281
	mov	ecx,esp
-
 
282
	mcall	68,17
-
 
283
	add	esp,24
-
 
284
	pop	ecx ebx
-
 
285
	ret	4
-
 
286
;------------------------------------------------------------------------------
-
 
287
;align 4
-
 
288
;_GetBufferPos@8:     ;str:dword, p_pos:dword
-
 
289
;	push	ebx ecx
-
 
290
;	lea	eax,[esp+16]
-
 
291
;	lea	ebx,[esp+12]   ;[stream]
-
 
292
;	
-
 
293
;	push	4              ;.out_size
-
 
294
;	push	eax            ;.output
-
 
295
;	push	4              ;.inp_size
-
 
296
;	push	ebx            ;.input
-
 
297
;	push	SND_GETPOS     ;.code
-
 
298
;	push	dword [hSound] ;.handle
-
 
299
;	
-
 
300
;	mov	ecx,esp
-
 
301
;	mcall	68,17
-
 
302
;	add	esp,24
-
 
303
;	pop	ecx ebx
-
 
304
;	ret	8
-
 
305
;------------------------------------------------------------------------------
-
 
306
;align 4
-
 
307
;_SetBufferPos@8:        ;str:dword, offs:dword
-
 
308
;	push	ebx ecx
-
 
309
;	xor	eax,eax
-
 
310
;	lea	ebx,[esp+12]   ;[stream]
-
 
311
;	
-
 
312
;	push	eax            ;.out_size
-
 
313
;	push	eax            ;.output
-
 
314
;	push	8              ;.inp_size
-
 
315
;	push	ebx            ;.input
-
 
316
;	push	SND_SETPOS     ;.code
-
 
317
;	push	dword [hSound] ;.handle
-
 
318
;	
-
 
319
;	mov	ecx,esp
184
	mcall	68,17
320
;	mcall	68,17
185
	add	esp,24
321
;	add	esp,24
186
	pop	ecx ebx
322
;	pop	ecx ebx
187
	ret	12
323
;	ret	8
188
;------------------------------------------------------------------------------
324
;------------------------------------------------------------------------------