mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-12 04:46:03 +00:00
Use stb_vorbis.h as header only
This commit is contained in:
@@ -47,8 +47,7 @@ add_definitions("-DRAYLIB_CMAKE=1")
|
||||
if(USE_AUDIO)
|
||||
file(GLOB mini_al external/mini_al.c)
|
||||
MESSAGE(STATUS "Audio Backend: mini_al")
|
||||
file(GLOB stb_vorbis external/stb_vorbis.c)
|
||||
set(sources ${raylib_sources} ${mini_al} ${stb_vorbis})
|
||||
set(sources ${raylib_sources} ${mini_al})
|
||||
else()
|
||||
MESSAGE(STATUS "Audio Backend: None (-DUSE_AUDIO=OFF)")
|
||||
set(INCLUDE_AUDIO_MODULE 0)
|
||||
|
@@ -404,7 +404,6 @@ endif
|
||||
|
||||
ifeq ($(INCLUDE_AUDIO_MODULE),TRUE)
|
||||
OBJS += audio.o
|
||||
OBJS += stb_vorbis.o
|
||||
OBJS += mini_al.o
|
||||
endif
|
||||
|
||||
@@ -537,10 +536,6 @@ audio.o : audio.c raylib.h
|
||||
mini_al.o : external/mini_al.c external/mini_al.h
|
||||
$(CC) -c $< $(CFLAGS) $(INCLUDE_PATHS) -D$(PLATFORM)
|
||||
|
||||
# Compile stb_vorbis library
|
||||
stb_vorbis.o: external/stb_vorbis.c external/stb_vorbis.h
|
||||
$(CC) -c $< $(CFLAGS) $(INCLUDE_PATHS) -D$(PLATFORM)
|
||||
|
||||
# Compile utils module
|
||||
utils.o : utils.c utils.h
|
||||
$(CC) -c $< $(CFLAGS) $(INCLUDE_PATHS) -D$(PLATFORM)
|
||||
@@ -628,9 +623,9 @@ endif
|
||||
# Clean everything
|
||||
clean:
|
||||
ifeq ($(PLATFORM_OS),WINDOWS)
|
||||
del *.o $(RAYLIB_RELEASE_PATH)/libraylib.a $(RAYLIB_RELEASE_PATH)/libraylib.bc $(RAYLIB_RELEASE_PATH)/libraylib.so external/stb_vorbis.o
|
||||
del *.o $(RAYLIB_RELEASE_PATH)/libraylib.a $(RAYLIB_RELEASE_PATH)/libraylib.bc $(RAYLIB_RELEASE_PATH)/libraylib.so
|
||||
else
|
||||
rm -fv *.o $(RAYLIB_RELEASE_PATH)/libraylib.a $(RAYLIB_RELEASE_PATH)/libraylib.bc $(RAYLIB_RELEASE_PATH)/libraylib.so* external/stb_vorbis.o
|
||||
rm -fv *.o $(RAYLIB_RELEASE_PATH)/libraylib.a $(RAYLIB_RELEASE_PATH)/libraylib.bc $(RAYLIB_RELEASE_PATH)/libraylib.so*
|
||||
endif
|
||||
ifeq ($(PLATFORM),PLATFORM_ANDROID)
|
||||
rm -rf $(ANDROID_TOOLCHAIN)
|
||||
|
@@ -91,7 +91,7 @@
|
||||
#include <stdio.h> // Required for: FILE, fopen(), fclose(), fread()
|
||||
|
||||
#if defined(SUPPORT_FILEFORMAT_OGG)
|
||||
//#define STB_VORBIS_HEADER_ONLY
|
||||
#define STB_VORBIS_IMPLEMENTATION
|
||||
#include "external/stb_vorbis.h" // OGG loading functions
|
||||
#endif
|
||||
|
||||
|
5074
src/external/stb_vorbis.c
vendored
5074
src/external/stb_vorbis.c
vendored
File diff suppressed because it is too large
Load Diff
5145
src/external/stb_vorbis.h
vendored
5145
src/external/stb_vorbis.h
vendored
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user