summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorDavid Reid <[email protected]>2017-11-12 22:56:53 +1000
committerDavid Reid <[email protected]>2017-11-12 22:57:31 +1000
commite52f4282d6f8e7465367effb22ba6f90a9099667 (patch)
tree50a4c2bb61dd2433e6e7a2879068ed8800805a17 /src
parentac4c911ad7e08cca3691896befbe8c09e3f3262f (diff)
downloadraylib-e52f4282d6f8e7465367effb22ba6f90a9099667.tar.gz
raylib-e52f4282d6f8e7465367effb22ba6f90a9099667.zip
Update comments.
Diffstat (limited to 'src')
-rw-r--r--src/audio.c2
-rw-r--r--src/external/mini_al.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/audio.c b/src/audio.c
index d4f426e0..70426532 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -396,7 +396,7 @@ static mal_uint32 OnSendAudioDataToDevice(mal_device* pDevice, mal_uint32 frameC
}
}
- // AudioStreams. These are handling slightly differently to sounds because we do data conversion at mixing time rather than
+ // AudioStreams. These are handled slightly differently to sounds because we do data conversion at mixing time rather than
// load time.
for (AudioStreamData* internalData = firstAudioStream; internalData != NULL; internalData = internalData->next)
{
diff --git a/src/external/mini_al.c b/src/external/mini_al.c
index 2ea2cc6b..7b437851 100644
--- a/src/external/mini_al.c
+++ b/src/external/mini_al.c
@@ -1,2 +1,4 @@
+// The implementation of mini_al needs to #include windows.h which means it needs to go into
+// it's own translation unit. Not doing this will cause conflicts with CloseWindow(), etc.
#define MAL_IMPLEMENTATION
-#include "mini_al.h" // <-- The implementation of mini_al.h #includes windows.h, so need to #undef some stuff. \ No newline at end of file
+#include "mini_al.h" \ No newline at end of file