mirror of
https://github.com/ZDoom/Raze.git
synced 2024-12-16 23:51:23 +00:00
b2a3aec334
It's functional, but due to the odd 37.8 KHz nature of the format, I will need to add a resampler to the audiolib to prevent the aliasing artifacts that occur at present. I also hear clicks/pops every so often, but I do not know if a resampler would fix these as well or if they are a separate problem. Note that you cannot directly use the four XA files on the Total Meltdown disc because they each contain eight songs. They would need to be split using a utility I wrote that is outside the scope of this SVN. git-svn-id: https://svn.eduke32.com/eduke32@4268 1a8010ca-5511-0410-912e-c29ae57300e0
51 lines
1,020 B
Text
51 lines
1,020 B
Text
OBJ=obj.msc
|
|
INC=include
|
|
SRC=src
|
|
JFAUDIOLIB=libjfaudiolib.lib
|
|
|
|
!ifdef DEBUG
|
|
# debugging options
|
|
flags_cl=/Od /Zi
|
|
flags_link=/DEBUG
|
|
flags_lib=
|
|
!else
|
|
# release options
|
|
flags_cl=/Ox /GL /arch:SSE
|
|
flags_link=/RELEASE /LTCG
|
|
flags_lib=/LTCG
|
|
!endif
|
|
|
|
CC=cl
|
|
LINK=link /opt:ref /nologo
|
|
|
|
VORBISSDK=C:\SDKs\oggvorbis-win32sdk-1.0.1
|
|
|
|
CFLAGS=$(CFLAGS) /nologo /MT /J $(flags_cl) $(TARGETOPTS) /I$(INC) /I$(SRC) /I"$(VORBISSDK)\include"
|
|
!ifdef DEBUG
|
|
CFLAGS=$(CFLAGS) /DDEBUGGINGAIDS
|
|
!endif
|
|
|
|
CFLAGS=$(CFLAGS) /DRENDERTYPE$(RENDERTYPE)=1 /D "_CRT_SECURE_NO_DEPRECATE" /W2 /DHAVE_VORBIS /Iinclude/msvc /DWIN32 /DHAVE_DS
|
|
|
|
OBJECTS=$(OBJ)\drivers.o \
|
|
$(OBJ)\fx_man.o \
|
|
$(OBJ)\multivoc.o \
|
|
$(OBJ)\mix.o \
|
|
$(OBJ)\mixst.o \
|
|
$(OBJ)\pitch.o \
|
|
$(OBJ)\formats.o \
|
|
$(OBJ)\vorbis.o \
|
|
$(OBJ)\xa.o \
|
|
$(OBJ)\driver_nosound.o \
|
|
$(OBJ)\driver_directsound.o
|
|
|
|
{$(SRC)}.c{$(OBJ)}.o:
|
|
$(CC) /c $(CFLAGS) /Fo$@ $<
|
|
|
|
jfaudiolib: $(JFAUDIOLIB)
|
|
$(JFAUDIOLIB): $(OBJECTS)
|
|
lib $(flags_lib) /out:$@ /nologo $**
|
|
|
|
clean:
|
|
-del /Q $(OBJ)\* $(JFAUDIOLIB)
|
|
|