libsound: Added build for TCC

git-svn-id: svn://kolibrios.org@9203 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
turbocat 2021-09-26 17:34:51 +00:00
parent d345371a26
commit 3f48750ec0
3 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,26 @@
AR = ar
FASM = fasm
OBJCOPY = objcopy
TARGET:= libsound
dirs := ./src
target_srcs:= $(foreach dir,$(dirs),$(wildcard $(dir)/*.asm))
target_objs:= $(subst .asm,.o,$(target_srcs))
all: $(TARGET).a
%.o: %.asm
$(FASM) $< $@
$(TARGET).a: $(target_objs) Makefile
$(AR) cvrs $@ $(target_objs)
objcopy -O elf32-i386 --redefine-syms=symbols $@
clean:
rm -f $(target_objs) $(TARGET).a

View File

@ -2,6 +2,8 @@
#ifndef _SOUND_H_
#define _SOUND_H_
#define _stdcall __attribute__((stdcall))
#ifdef __cplusplus
extern "C"
{

View File

@ -0,0 +1,24 @@
_CreateBuffer@12 CreateBuffer
_DestroyBuffer@4 DestroyBuffer
_InitSound@4 InitSound
_PlayBuffer@8 PlayBuffer
_SetBuffer@16 SetBuffer
_GetFormat@8 GetFormat
_GetMasterVol@4 GetMasterVol
_GetPan@8 GetPan
_GetBufferPos@8 GetBufferPos
_GetBufferFree@8 GetBufferFree
_GetBufferSize@8 GetBufferSize
_GetVolume@12 GetVolume
_WaveOut@12 WaveOut
_ResetBuffer@8 ResetBuffer
_SetFormat@8 SetFormat
_SetMasterVol@4 SetMasterVol
_SetPan@8 SetPan
_SetBufferPos@8 SetBufferPos
_SetVolume@12 SetVolume
_GetDevTime@4 GetDevTime
_GetTimeStamp@8 GetTimeStamp
_SetTimeBase@12 SetTimeBase
_StopBuffer@4 StopBuffer
_test_wav@4 test_wav