Make use of the new EnumMap class
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#include <Nazara/Audio/Enums.hpp>
|
||||
#include <Nazara/Audio/OpenAL.hpp>
|
||||
#include <Nazara/Core/Algorithm.hpp>
|
||||
#include <NazaraUtils/EnumMap.hpp>
|
||||
#include <NazaraUtils/MovablePtr.hpp>
|
||||
#include <array>
|
||||
#include <string>
|
||||
@@ -30,8 +31,6 @@ namespace Nz
|
||||
Max = SourceLatency
|
||||
};
|
||||
|
||||
constexpr std::size_t OpenALExtensionCount = static_cast<std::size_t>(OpenALExtension::Max) + 1;
|
||||
|
||||
class NAZARA_AUDIO_API OpenALDevice : public AudioDevice
|
||||
{
|
||||
friend OpenALLibrary;
|
||||
@@ -72,8 +71,8 @@ namespace Nz
|
||||
OpenALDevice& operator=(OpenALDevice&&) = delete;
|
||||
|
||||
private:
|
||||
std::array<ALenum, AudioFormatCount> m_audioFormatValues;
|
||||
std::array<bool, OpenALExtensionCount> m_extensionStatus;
|
||||
EnumMap<AudioFormat, ALenum> m_audioFormatValues;
|
||||
EnumMap<OpenALExtension, ALenum> m_extensionStatus;
|
||||
std::string m_renderer;
|
||||
std::string m_vendor;
|
||||
OpenALLibrary& m_library;
|
||||
|
||||
Reference in New Issue
Block a user