From e52f4282d6f8e7465367effb22ba6f90a9099667 Mon Sep 17 00:00:00 2001 From: David Reid Date: Sun, 12 Nov 2017 22:56:53 +1000 Subject: [PATCH] Update comments. --- src/audio.c | 2 +- src/external/mini_al.c | 4 +++- 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