Subversion Repositories Kolibri OS

Rev

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

Rev 864 Rev 887
Line 81... Line 81...
81
           jz .fail
81
           jz .fail
82
           mov [hSound], eax
82
           mov [hSound], eax
Line 83... Line 83...
83
 
83
 
84
           mov ecx,  16*512
84
           mov ecx,  16*512
85
           mov edx, PG_SW
85
           mov edx, PG_SW
86
           call HeapAlloc
86
           call MemAlloc
87
           test eax, eax
87
           test eax, eax
88
           jz .out_of_mem
88
           jz .out_of_mem
Line 89... Line 89...
89
           mov [mix_buff], eax
89
           mov [mix_buff], eax
Line 424... Line 424...
424
.static:
424
.static:
425
           mov ecx, [size]
425
           mov ecx, [size]
426
           add ecx, 128          ;resampler required
426
           add ecx, 128          ;resampler required
427
           mov [eax+STREAM.in_size], ecx
427
           mov [eax+STREAM.in_size], ecx
428
           mov edx, PG_SW
428
           mov edx, PG_SW
429
           call HeapAlloc
429
           call MemAlloc
Line 430... Line 430...
430
 
430
 
431
           mov edi, [str]
431
           mov edi, [str]
432
           mov [edi+STREAM.in_base], eax
432
           mov [edi+STREAM.in_base], eax
433
           add eax, 128
433
           add eax, 128
Line 511... Line 511...
511
           mov ecx, [eax+STREAM.str_bk]
511
           mov ecx, [eax+STREAM.str_bk]
512
           mov [ebx+STREAM.str_bk], ecx
512
           mov [ebx+STREAM.str_bk], ecx
513
           mov [ecx+STREAM.str_fd], ebx
513
           mov [ecx+STREAM.str_fd], ebx
514
           popf
514
           popf
Line 515... Line 515...
515
 
515
 
-
 
516
           mov ecx, [eax+STREAM.in_base]
516
           stdcall KernelFree, [eax+STREAM.in_base]
517
           call MemFree
517
           mov eax, [.handle]
518
           mov eax, [.handle]
-
 
519
           mov ecx, [eax+STREAM.out_base]
Line 518... Line 520...
518
           stdcall KernelFree, [eax+STREAM.out_base]
520
           call MemFree
519
 
521
 
520
           pop eax               ;restore stack
522
           pop eax               ;restore stack
521
           call DestroyObject    ;eax= stream
523
           call DestroyObject    ;eax= stream