mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-12 12:56:00 +00:00
WARNING: Renamed module: audio -> raudio
Planning to promote raudio module as a simple and easy-to-use front-end for the amazing mini_al library, so the name change. Name comes from raylib-audio but in spanish it also remembers to word "raudo", meaning "very fast", an analogy that fits perfectly to the usefulness and performance of the library! Consequently, raylib version has been bumped to 2.4-dev.
This commit is contained in:
@@ -51,7 +51,7 @@ if(USE_AUDIO)
|
||||
else()
|
||||
MESSAGE(STATUS "Audio Backend: None (-DUSE_AUDIO=OFF)")
|
||||
set(INCLUDE_AUDIO_MODULE 0)
|
||||
list(REMOVE_ITEM raylib_sources ${CMAKE_CURRENT_SOURCE_DIR}/audio.c)
|
||||
list(REMOVE_ITEM raylib_sources ${CMAKE_CURRENT_SOURCE_DIR}/raudio.c)
|
||||
set(sources ${raylib_sources})
|
||||
endif()
|
||||
|
||||
@@ -250,7 +250,7 @@ file(COPY "raylib.h" DESTINATION ".")
|
||||
file(COPY "rlgl.h" DESTINATION ".")
|
||||
file(COPY "physac.h" DESTINATION ".")
|
||||
file(COPY "raymath.h" DESTINATION ".")
|
||||
file(COPY "audio.h" DESTINATION ".")
|
||||
file(COPY "raudio.h" DESTINATION ".")
|
||||
|
||||
# Print the flags for the user
|
||||
message(STATUS "Compiling with the flags:")
|
||||
|
@@ -61,7 +61,7 @@ option(SUPPORT_FILEFORMAT_OBJ "Support loading OBJ file format" ON)
|
||||
option(SUPPORT_FILEFORMAT_MTL "Support loading MTL file format" ON)
|
||||
option(SUPPORT_MESH_GENERATION "Support procedural mesh generation functions, uses external par_shapes.h library. NOTE: Some generated meshes DO NOT include generated texture coordinates" ON)
|
||||
|
||||
# audio.c
|
||||
# raudio.c
|
||||
option(SUPPORT_FILEFORMAT_WAV "Support loading WAV for sound" ON)
|
||||
option(SUPPORT_FILEFORMAT_OGG "Support loading OGG for sound" ON)
|
||||
option(SUPPORT_FILEFORMAT_XM "Support loading XM for sound" ON)
|
||||
|
@@ -403,7 +403,7 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP)
|
||||
endif
|
||||
|
||||
ifeq ($(INCLUDE_AUDIO_MODULE),TRUE)
|
||||
OBJS += audio.o
|
||||
OBJS += raudio.o
|
||||
OBJS += mini_al.o
|
||||
endif
|
||||
|
||||
@@ -529,7 +529,7 @@ models.o : models.c raylib.h rlgl.h raymath.h
|
||||
$(CC) -c $< $(CFLAGS) $(INCLUDE_PATHS) -D$(PLATFORM) -D$(GRAPHICS)
|
||||
|
||||
# Compile audio module
|
||||
audio.o : audio.c raylib.h
|
||||
raudio.o : raudio.c raylib.h
|
||||
$(CC) -c $< $(CFLAGS) $(INCLUDE_PATHS) -D$(PLATFORM)
|
||||
|
||||
# Compile mini_al audio library
|
||||
|
@@ -25,7 +25,7 @@
|
||||
*
|
||||
**********************************************************************************************/
|
||||
|
||||
#define RAYLIB_VERSION "2.3-dev"
|
||||
#define RAYLIB_VERSION "2.4-dev"
|
||||
|
||||
// Edit to control what features Makefile'd raylib is compiled with
|
||||
#if defined(RAYLIB_CMAKE)
|
||||
|
@@ -65,7 +65,7 @@
|
||||
* NOTE: Some generated meshes DO NOT include generated texture coordinates */
|
||||
#cmakedefine SUPPORT_MESH_GENERATION 1
|
||||
|
||||
// audio.c
|
||||
// raudio.c
|
||||
/* Desired fileformats to be supported for loading. */
|
||||
#cmakedefine SUPPORT_FILEFORMAT_WAV 1
|
||||
#cmakedefine SUPPORT_FILEFORMAT_OGG 1
|
||||
|
BIN
src/libraylib.a
Normal file
BIN
src/libraylib.a
Normal file
Binary file not shown.
@@ -12,7 +12,7 @@
|
||||
*
|
||||
* CONFIGURATION:
|
||||
*
|
||||
* #define AUDIO_STANDALONE
|
||||
* #define RAUDIO_STANDALONE
|
||||
* Define to use the module as standalone library (independently of raylib).
|
||||
* Required types and functions are defined in the same module.
|
||||
*
|
||||
@@ -70,8 +70,8 @@
|
||||
*
|
||||
**********************************************************************************************/
|
||||
|
||||
#if defined(AUDIO_STANDALONE)
|
||||
#include "audio.h"
|
||||
#if defined(RAUDIO_STANDALONE)
|
||||
#include "raudio.h"
|
||||
#include <stdarg.h> // Required for: va_list, va_start(), vfprintf(), va_end()
|
||||
#else
|
||||
#include "raylib.h" // Declares module functions
|
||||
@@ -169,7 +169,7 @@ typedef struct MusicData {
|
||||
unsigned int samplesLeft; // Number of samples left to end
|
||||
} MusicData;
|
||||
|
||||
#if defined(AUDIO_STANDALONE)
|
||||
#if defined(RAUDIO_STANDALONE)
|
||||
typedef enum {
|
||||
LOG_INFO = 0,
|
||||
LOG_ERROR,
|
||||
@@ -201,7 +201,7 @@ static Wave LoadFLAC(const char *fileName); // Load FLAC file
|
||||
static Wave LoadMP3(const char *fileName); // Load MP3 file
|
||||
#endif
|
||||
|
||||
#if defined(AUDIO_STANDALONE)
|
||||
#if defined(RAUDIO_STANDALONE)
|
||||
bool IsFileExtension(const char *fileName, const char *ext); // Check file extension
|
||||
void TraceLog(int msgType, const char *text, ...); // Show trace log messages (LOG_INFO, LOG_WARNING, LOG_ERROR, LOG_DEBUG)
|
||||
#endif
|
||||
@@ -1918,7 +1918,7 @@ static Wave LoadMP3(const char *fileName)
|
||||
#endif
|
||||
|
||||
// Some required functions for audio standalone module version
|
||||
#if defined(AUDIO_STANDALONE)
|
||||
#if defined(RAUDIO_STANDALONE)
|
||||
// Check file extension
|
||||
bool IsFileExtension(const char *fileName, const char *ext)
|
||||
{
|
Reference in New Issue
Block a user