NazaraEngine/include/Nazara/Audio/OpenAL.hpp

29 lines
736 B
C++

// Copyright (C) 2024 Jérôme "SirLynix" Leclercq (lynix680@gmail.com)
// This file is part of the "Nazara Engine - Audio module"
// For conditions of distribution and use, see copyright notice in Export.hpp
#pragma once
#ifndef NAZARA_AUDIO_OPENAL_HPP
#define NAZARA_AUDIO_OPENAL_HPP
#if defined(NAZARA_AUDIO_OPENAL) || defined(NAZARA_AUDIO_BUILD)
// Inclusion of OpenAL headers
#include <AL/al.h>
#include <AL/alc.h>
#ifndef NAZARA_PLATFORM_WEB
// Emscripten ships its own set of OpenAL headers which does not include alext.h
#include <AL/alext.h>
#endif
// AL_APIENTRY is not defined by emscripten OpenAL headers
#ifndef AL_APIENTRY
#define AL_APIENTRY
#endif
#endif // NAZARA_AUDIO_OPENAL
#endif // NAZARA_AUDIO_OPENAL_HPP