diff options
| author | raysan5 <[email protected]> | 2016-11-18 13:39:57 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2016-11-18 13:39:57 +0100 |
| commit | f7b706263a820034a93ab88e7582b7001819d8d0 (patch) | |
| tree | dec39c4e98c119b151be962ba3706042b285c39a /src/audio.c | |
| parent | c7f0350182b6c0b46daaaff232789acc4c7ab4f1 (diff) | |
| download | raylib-f7b706263a820034a93ab88e7582b7001819d8d0.tar.gz raylib-f7b706263a820034a93ab88e7582b7001819d8d0.zip | |
Some code tweaks
Correcting details that pop-up when testing the different platforms
Diffstat (limited to 'src/audio.c')
| -rw-r--r-- | src/audio.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/audio.c b/src/audio.c index 3ddbf0ce..49aca4b0 100644 --- a/src/audio.c +++ b/src/audio.c @@ -49,8 +49,11 @@ #if defined(AUDIO_STANDALONE) #include "audio.h" + #include <stdarg.h> // Required for: va_list, va_start(), vfprintf(), va_end() #else #include "raylib.h" + #include "utils.h" // Required for: DecompressData() + // NOTE: Includes Android fopen() function map #endif #include "AL/al.h" // OpenAL basic header @@ -68,13 +71,6 @@ #define AL_FORMAT_STEREO_FLOAT32 0x10011 #endif -#if defined(AUDIO_STANDALONE) - #include <stdarg.h> // Required for: va_list, va_start(), vfprintf(), va_end() -#else - #include "utils.h" // Required for: DecompressData() - // NOTE: Includes Android fopen() function map -#endif - //#define STB_VORBIS_HEADER_ONLY #include "external/stb_vorbis.h" // OGG loading functions @@ -122,7 +118,7 @@ typedef struct MusicData { bool loop; // Repeat music after finish (loop) unsigned int totalSamples; // Total number of samples unsigned int samplesLeft; // Number of samples left to end -} MusicData, *Music; +} MusicData; #if defined(AUDIO_STANDALONE) typedef enum { INFO = 0, ERROR, WARNING, DEBUG, OTHER } TraceLogType; |
