Audio: Add FLAC support

This commit is contained in:
Jérôme Leclercq
2021-06-03 17:21:15 +02:00
parent f0b26efcd3
commit 0dd5e92a50
4 changed files with 638 additions and 4 deletions

View File

@@ -8,6 +8,7 @@
#include <Nazara/Audio/OpenAL.hpp>
#include <Nazara/Audio/SoundBuffer.hpp>
#include <Nazara/Audio/Formats/drwavLoader.hpp>
#include <Nazara/Audio/Formats/libflacLoader.hpp>
#include <Nazara/Audio/Formats/libvorbisLoader.hpp>
#include <Nazara/Audio/Formats/minimp3Loader.hpp>
#include <Nazara/Core/CallOnExit.hpp>
@@ -36,12 +37,14 @@ namespace Nz
SetListenerDirection(Vector3f::Forward());
// Loaders
m_soundBufferLoader.RegisterLoader(Loaders::GetSoundBufferLoader_minimp3());
m_soundStreamLoader.RegisterLoader(Loaders::GetSoundStreamLoader_minimp3());
m_soundBufferLoader.RegisterLoader(Loaders::GetSoundBufferLoader_drwav());
m_soundStreamLoader.RegisterLoader(Loaders::GetSoundStreamLoader_drwav());
m_soundBufferLoader.RegisterLoader(Loaders::GetSoundBufferLoader_libflac());
m_soundStreamLoader.RegisterLoader(Loaders::GetSoundStreamLoader_libflac());
m_soundBufferLoader.RegisterLoader(Loaders::GetSoundBufferLoader_libvorbis());
m_soundStreamLoader.RegisterLoader(Loaders::GetSoundStreamLoader_libvorbis());
m_soundBufferLoader.RegisterLoader(Loaders::GetSoundBufferLoader_minimp3());
m_soundStreamLoader.RegisterLoader(Loaders::GetSoundStreamLoader_minimp3());
}
Audio::~Audio()