Audio/OpenALDevice: Improve error when buffer/source creation fails
This commit is contained in:
24
include/Nazara/Audio/OpenALUtils.hpp
Normal file
24
include/Nazara/Audio/OpenALUtils.hpp
Normal file
@@ -0,0 +1,24 @@
|
||||
// Copyright (C) 2023 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
|
||||
// This file is part of the "Nazara Engine - Audio module"
|
||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef NAZARA_AUDIO_OPENALUTILS_HPP
|
||||
#define NAZARA_AUDIO_OPENALUTILS_HPP
|
||||
|
||||
#if defined(NAZARA_AUDIO_OPENAL) || defined(NAZARA_AUDIO_BUILD)
|
||||
|
||||
#include <NazaraUtils/Prerequisites.hpp>
|
||||
#include <Nazara/Audio/Config.hpp>
|
||||
#include <Nazara/Audio/OpenAL.hpp>
|
||||
#include <string>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
NAZARA_AUDIO_API std::string TranslateOpenALError(ALenum code);
|
||||
}
|
||||
|
||||
#endif // NAZARA_AUDIO_OPENAL
|
||||
|
||||
#endif // NAZARA_AUDIO_OPENALUTILS_HPP
|
||||
Reference in New Issue
Block a user