Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 798 → Rev 799

/programs/media/ac97snd/ac97snd/ac97snd.vcproj
227,10 → 227,10
>
<Tool
Name="VCCLCompilerTool"
Optimization="2"
Optimization="3"
InlineFunctionExpansion="0"
EnableIntrinsicFunctions="true"
FavorSizeOrSpeed="1"
FavorSizeOrSpeed="0"
/>
</FileConfiguration>
</File>
237,6 → 237,14
<File
RelativePath=".\crt.c"
>
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCLCompilerTool"
AssemblerOutput="1"
/>
</FileConfiguration>
</File>
<File
RelativePath=".\k_lib.asm"
/programs/media/ac97snd/ac97snd/ac97wav.c
550,7 → 550,8
void delay (int val)
{
_asm
{ mov eax,5
{
mov eax,5
mov ebx, [val]
int 0x40
};
559,7 → 560,8
int wait_for_event(int time)
{ int retval;
_asm
{ mov eax,23
{
mov eax,23
mov ebx,[time]
int 0x40
mov [retval], eax
570,7 → 572,8
int wait_for_event_infinite()
{ int retval;
_asm
{ mov eax,10
{
mov eax,10
int 0x40
mov [retval], eax
};
579,7 → 582,8
 
void BeginDraw()
{_asm
{ mov eax,12
{
mov eax,12
mov ebx, 1
int 0x40
};
587,7 → 591,8
 
void EndDraw()
{ _asm
{ mov eax,12
{
mov eax,12
mov ebx, 2
int 0x40
};
/programs/media/ac97snd/ac97snd/k_lib.asm
33,7 → 33,7
public _create_thread@12
 
 
;public _memset
public _memset
 
struc FILEIO
{ .cmd dd ?
81,10 → 81,12
 
align 4
_create_thread@12:
.thr_proc equ esp+4
.param equ esp+8
.stack_size equ esp+12
.thr_proc equ esp+8
.param equ esp+12
.stack_size equ esp+16
 
push ebx
mov eax, 68
mov ebx, 12
mov ecx, [.stack_size]
104,9 → 106,11
mov ebx, 1
mov ecx, [.thr_proc]
int 0x40
pop ebx
ret 12
.fail:
not eax
pop ebx
ret 12
align 4
.exit_point:
418,13 → 422,13
;arg5 - color
push ebx ecx
mov eax,13
mov ebx,[esp+8]
mov ebx,[esp+12]
shl ebx,16
mov bx,[esp+16]
mov ecx,[esp+12]
mov bx,[esp+20]
mov ecx,[esp+16]
shl ecx,16
mov cx,[esp+20]
mov edx,[esp+24]
mov cx,[esp+24]
mov edx,[esp+28]
int 0x40
pop ecx ebx
ret 20
437,12 → 441,12
;arg5 - len
push ebx ecx esi
mov eax,4
mov ebx,[esp+12]
mov ebx,[esp+16]
shl ebx,16
mov bx,[esp+16]
mov ecx,[esp+20]
mov edx,[esp+24]
mov esi,[esp+28]
mov bx,[esp+20]
mov ecx,[esp+24]
mov edx,[esp+28]
mov esi,[esp+32]
int 0x40
pop esi ecx ebx
ret 20
/programs/media/ac97snd/mpg/readers.c
97,6 → 97,7
mem_cpy(rd->buffer,rd->stream,rd->strremain);
 
rd->stream = rd->buffer;
bytes= 0;
retval=read_file (rd->hFile,rd->buffer+rd->strremain,rd->filepos,
0x10000-rd->strremain,&bytes);
if( (retval==0)||(retval==6))
106,7 → 107,7
rd->strpos = 0;
return bytes;
};
return 0;
return bytes;
};
 
int __stdcall set_reader(struct reader *rd, unsigned int filepos)