Enable SDL2 library for audio on Web

Solves audio cracking issues
This commit is contained in:
Ray
2018-11-26 17:15:43 +01:00
parent c6b526de66
commit 969e48e3dd
2 changed files with 6 additions and 4 deletions

View File

@ -301,7 +301,7 @@ ifeq ($(PLATFORM),PLATFORM_WEB)
# -s ALLOW_MEMORY_GROWTH=1 # to allow memory resizing
# -s TOTAL_MEMORY=16777216 # to specify heap memory size (default = 16MB)
# -s USE_PTHREADS=1 # multithreading support
CFLAGS += -s USE_GLFW=3 -s ASSERTIONS=1 --profiling
CFLAGS += -s USE_GLFW=3 -s USE_SDL=2 -s ASSERTIONS=1 --profiling
endif
ifeq ($(PLATFORM),PLATFORM_ANDROID)
# Compiler flags for arquitecture