From 06425645eeaf76b83b42054809c8cbf0aec3aad9 Mon Sep 17 00:00:00 2001 From: David Reid Date: Mon, 27 Dec 2021 10:22:59 +1000 Subject: [PATCH] Fix some compilation errors. --- miniaudio.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/miniaudio.h b/miniaudio.h index 844888e5..144c7a5f 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -10314,10 +10314,10 @@ typedef struct ma_sound ma_sound; /* Sound flags. */ typedef enum { - MA_SOUND_FLAG_STREAM = MA_RESOURCE_MANAGER_DATA_SOURCE_FLAG_STREAM, /* 0x00000001 */ - MA_SOUND_FLAG_DECODE = MA_RESOURCE_MANAGER_DATA_SOURCE_FLAG_DECODE, /* 0x00000002 */ - MA_SOUND_FLAG_ASYNC = MA_RESOURCE_MANAGER_DATA_SOURCE_FLAG_ASYNC, /* 0x00000004 */ - MA_SOUND_FLAG_WAIT_INIT = MA_RESOURCE_MANAGER_DATA_SOURCE_FLAG_WAIT_INIT, /* 0x00000008 */ + MA_SOUND_FLAG_STREAM = 0x00000001, /* MA_RESOURCE_MANAGER_DATA_SOURCE_FLAG_STREAM */ + MA_SOUND_FLAG_DECODE = 0x00000002, /* MA_RESOURCE_MANAGER_DATA_SOURCE_FLAG_DECODE */ + MA_SOUND_FLAG_ASYNC = 0x00000004, /* MA_RESOURCE_MANAGER_DATA_SOURCE_FLAG_ASYNC */ + MA_SOUND_FLAG_WAIT_INIT = 0x00000008, /* MA_RESOURCE_MANAGER_DATA_SOURCE_FLAG_WAIT_INIT */ MA_SOUND_FLAG_NO_DEFAULT_ATTACHMENT = 0x00000010, /* Do not attach to the endpoint by default. Useful for when setting up nodes in a complex graph system. */ MA_SOUND_FLAG_NO_PITCH = 0x00000020, /* Disable pitch shifting with ma_sound_set_pitch() and ma_sound_group_set_pitch(). This is an optimization. */ MA_SOUND_FLAG_NO_SPATIALIZATION = 0x00000040 /* Disable spatialization. */ @@ -10681,6 +10681,7 @@ IMPLEMENTATION #include /* For memset() */ #include #include /* select() (used for ma_sleep()). */ +#include #endif #include /* For fstat(), etc. */ @@ -15118,8 +15119,6 @@ static ma_result ma_semaphore_release__win32(ma_semaphore* pSemaphore) #ifdef MA_POSIX -#include - static ma_result ma_thread_create__posix(ma_thread* pThread, ma_thread_priority priority, size_t stackSize, ma_thread_entry_proc entryProc, void* pData) { int result;