Audio/OpenALDevice: Improve error when buffer/source creation fails

This commit is contained in:
Lynix
2023-11-29 23:27:42 +01:00
parent 150787971a
commit 36dcc03c11
3 changed files with 77 additions and 2 deletions

View 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