Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 860 → Rev 864

/kernel/branches/kolibri_pe/drivers/imports.inc
36,7 → 36,6
PciWrite32,\
\
AllocPage,\
AllocPages,\
FreePage,\
MapPage,\
MapSpace,\
45,9 → 44,8
CommitPages,\
ReleasePages,\
\
AllocKernelSpace,\
FreeKernelSpace,\
KernelAlloc,\
HeapAlloc,\
KernelFree,\
UserAlloc,\
UserFree,\
/kernel/branches/kolibri_pe/drivers/infinity.asm
81,7 → 81,9
jz .fail
mov [hSound], eax
 
stdcall KernelAlloc, 16*512
mov ecx, 16*512
mov edx, PG_SW
call HeapAlloc
test eax, eax
jz .out_of_mem
mov [mix_buff], eax
325,7 → 327,6
locals
str dd ?
ring_size dd ?
ring_pages dd ?
endl
 
mov eax, [format]
402,8 → 403,6
.waveout:
mov [ring_size], ebx
mov eax, ebx
shr ebx, 12
mov [ring_pages], ebx
 
stdcall CreateRingBuffer, eax, PG_SW
 
426,7 → 425,8
mov ecx, [size]
add ecx, 128 ;resampler required
mov [eax+STREAM.in_size], ecx
stdcall KernelAlloc, ecx
mov edx, PG_SW
call HeapAlloc
 
mov edi, [str]
mov [edi+STREAM.in_base], eax
440,7 → 440,7
mov [edi+STREAM.in_top], eax
 
.out_buff:
stdcall AllocKernelSpace, dword 128*1024
stdcall CreateRingBuffer, 64*1024, PG_SW
 
mov edi, [str]
mov [edi+STREAM.out_base], eax
450,21 → 450,6
add eax, 64*1024
mov [edi+STREAM.out_top], eax
 
stdcall AllocPages, dword 64/4
mov edi, [str]
mov ebx, [edi+STREAM.out_base]
mov ecx, 16
or eax, PG_SW
push eax
push ebx
call CommitPages ;eax, ebx, ecx
mov ecx, 16
pop ebx
pop eax
add ebx, 64*1024
call CommitPages ;double mapped
 
mov edi, [str]
mov ecx, [edi+STREAM.in_top]
mov edi, [edi+STREAM.in_base]
sub ecx, edi
/kernel/branches/kolibri_pe/drivers/sis.asm
32,6 → 32,8
 
CPU_FREQ equ 2600d
 
PG_SW equ 0x003
 
BIT0 EQU 0x00000001
BIT1 EQU 0x00000002
BIT2 EQU 0x00000004
507,7 → 509,9
align 4
proc create_primary_buff
 
stdcall KernelAlloc, 0x10000
mov ecx, 0x10000
mov edx, PG_SW
call HeapAlloc
mov [ctrl.buffer], eax
 
mov edi, eax
/kernel/branches/kolibri_pe/drivers/sound.asm
32,6 → 32,8
 
CPU_FREQ equ 2600d
 
PG_SW equ 0x003
 
BIT0 EQU 0x00000001
BIT1 EQU 0x00000002
BIT2 EQU 0x00000004
529,7 → 531,9
align 4
proc create_primary_buff
 
stdcall KernelAlloc, 0x10000
mov ecx, 0x10000
mov edx, PG_SW
call HeapAlloc
mov [ctrl.buffer], eax
 
mov edi, eax