From 969e48e3dd67ea26fd3e928914f0c1ffe7dfab23 Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 26 Nov 2018 17:15:43 +0100 Subject: Enable SDL2 library for audio on Web Solves audio cracking issues --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Makefile b/src/Makefile index 70e8893c..fa9aeedb 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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 -- cgit v1.2.3