Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 799 → Rev 798

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