summaryrefslogtreecommitdiffhomepage
path: root/src/raudio.c
diff options
context:
space:
mode:
authorRay <[email protected]>2020-06-30 11:05:09 +0200
committerRay <[email protected]>2020-06-30 11:05:09 +0200
commit5986eee6ab0c69045b1115d30b9f7d8a42d2f330 (patch)
tree1b06c47e0b5907769463c1aae436d95142c39c09 /src/raudio.c
parent00557df17fc1654688b3306cfbee86fa8c725366 (diff)
downloadraylib-5986eee6ab0c69045b1115d30b9f7d8a42d2f330.tar.gz
raylib-5986eee6ab0c69045b1115d30b9f7d8a42d2f330.zip
Expose additional configuration options
Some internal defines have been exposed in config.h
Diffstat (limited to 'src/raudio.c')
-rw-r--r--src/raudio.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/raudio.c b/src/raudio.c
index c565b0ec..66afc924 100644
--- a/src/raudio.c
+++ b/src/raudio.c
@@ -244,6 +244,10 @@ typedef struct tagBITMAPINFOHEADER {
#ifndef MAX_AUDIO_BUFFER_POOL_CHANNELS
#define MAX_AUDIO_BUFFER_POOL_CHANNELS 16 // Audio pool channels
#endif
+#ifndef DEFAULT_AUDIO_BUFFER_SIZE
+ #define DEFAULT_AUDIO_BUFFER_SIZE 4096 // Default audio buffer size
+#endif
+
//----------------------------------------------------------------------------------
// Types and Structures Definition
@@ -335,7 +339,7 @@ static AudioData AUDIO = { // Global AUDIO context
// After some math, considering a sampleRate of 48000, a buffer refill rate of 1/60 seconds and a
// standard double-buffering system, a 4096 samples buffer has been chosen, it should be enough
// In case of music-stalls, just increase this number
- .Buffer.defaultSize = 4096
+ .Buffer.defaultSize = DEFAULT_AUDIO_BUFFER_SIZE
};
//----------------------------------------------------------------------------------