Include the OpenAL headers using the "al.h" form, as recommended by its CMake finder script

dev-ui
Didier 'OdyX' Raboud 2013-10-23 10:02:41 +02:00 committed by Piotr Dziwinski
parent b3b6a40d9e
commit 591ba30a00
5 changed files with 8 additions and 7 deletions

View File

@ -175,6 +175,7 @@ find_package(GLEW REQUIRED)
if (OPENAL_SOUND)
find_package(OpenAL REQUIRED)
include_directories(${OPENAL_INCLUDE_DIR})
find_package(LibSndFile REQUIRED)
endif()

View File

@ -32,7 +32,7 @@
#include <map>
#include <string>
#include <AL/al.h>
#include <al.h>
class ALSound : public CSoundInterface

View File

@ -30,7 +30,7 @@
#include <vector>
#include <array>
#include <AL/al.h>
#include <al.h>
#include <sndfile.h>
class Buffer

View File

@ -30,8 +30,8 @@
#include <deque>
#include <cassert>
#include <AL/al.h>
#include <AL/alc.h>
#include <al.h>
#include <alc.h>
struct SoundOper
{

View File

@ -18,11 +18,11 @@
#pragma once
#include <AL/al.h>
#include <AL/alc.h>
#include "common/logger.h"
#include <al.h>
#include <alc.h>
static ALenum CODE = AL_NO_ERROR;
inline bool alCheck()