Fix USE_SYSTEM_OPENAL to use system headers
Even when USE_SYSTEM_OPENAL was enabled, the code directly included the bundled OpenAL headers, bypassing the system headers. Since `#include <AL/al.h>` is not portable, use `#include "al.h"` instead. https://cmake.org/cmake/help/latest/module/FindOpenAL.html
This commit is contained in:
committed by
Megamouse
parent
e319ca2998
commit
daad30b2b3
@@ -11,7 +11,7 @@
|
|||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
#ifndef WITHOUT_OPENAL
|
#ifndef WITHOUT_OPENAL
|
||||||
#include "3rdparty/OpenAL/openal-soft/include/AL/alext.h"
|
#include "alext.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
LOG_CHANNEL(cellMic);
|
LOG_CHANNEL(cellMic);
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Utilities/Thread.h"
|
#include "Utilities/Thread.h"
|
||||||
#include "3rdparty/OpenAL/openal-soft/include/AL/alc.h"
|
|
||||||
#include "Utilities/mutex.h"
|
#include "Utilities/mutex.h"
|
||||||
|
|
||||||
|
#include "alc.h"
|
||||||
|
|
||||||
// Error Codes
|
// Error Codes
|
||||||
enum CellMicInError : u32
|
enum CellMicInError : u32
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
|
|
||||||
#include "Utilities/StrUtil.h"
|
#include "Utilities/StrUtil.h"
|
||||||
|
|
||||||
#include "3rdparty/OpenAL/openal-soft/include/AL/al.h"
|
#include "al.h"
|
||||||
#include "3rdparty/OpenAL/openal-soft/include/AL/alc.h"
|
#include "alc.h"
|
||||||
|
|
||||||
LOG_CHANNEL(cfg_log, "CFG");
|
LOG_CHANNEL(cfg_log, "CFG");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user