diff options
Diffstat (limited to 'src/raudio.h')
| -rw-r--r-- | src/raudio.h | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/src/raudio.h b/src/raudio.h index f9c22ff2..f71a3083 100644 --- a/src/raudio.h +++ b/src/raudio.h @@ -11,7 +11,7 @@ * - Manage raw audio context * * DEPENDENCIES: -* mini_al.h - Audio device management lib (https://github.com/dr-soft/mini_al) +* miniaudio.h - Audio device management lib (https://github.com/dr-soft/miniaudio) * stb_vorbis.h - Ogg audio files loading (http://www.nothings.org/stb_vorbis/) * dr_mp3.h - MP3 audio file loading (https://github.com/mackron/dr_libs) * dr_flac.h - FLAC audio file loading (https://github.com/mackron/dr_libs) @@ -50,17 +50,25 @@ * **********************************************************************************************/ -#ifndef AUDIO_H -#define AUDIO_H +#ifndef RAUDIO_H +#define RAUDIO_H //---------------------------------------------------------------------------------- // Defines and Macros //---------------------------------------------------------------------------------- -//... +// Allow custom memory allocators +#ifndef RL_MALLOC + #define RL_MALLOC(sz) malloc(sz) +#endif +#ifndef RL_CALLOC + #define RL_CALLOC(n,sz) calloc(n,sz) +#endif +#ifndef RL_FREE + #define RL_FREE(p) free(p) +#endif //---------------------------------------------------------------------------------- // Types and Structures Definition -// NOTE: Below types are required for CAMERA_STANDALONE usage //---------------------------------------------------------------------------------- #ifndef __cplusplus // Boolean type @@ -174,4 +182,4 @@ void SetAudioStreamPitch(AudioStream stream, float pitch); // Set pitch for } #endif -#endif // AUDIO_H
\ No newline at end of file +#endif // RAUDIO_H
\ No newline at end of file |
