Audio: Add .ogg loader (using libvorbisfile)

This commit is contained in:
Jérôme Leclercq
2021-05-30 02:32:06 +02:00
parent ca51ab16c9
commit 79b6b87379
4 changed files with 453 additions and 2 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/libvorbisLoader.hpp>
#include <Nazara/Audio/Formats/minimp3Loader.hpp>
#include <Nazara/Audio/Formats/sndfileLoader.hpp>
#include <Nazara/Core/CallOnExit.hpp>
@@ -42,6 +43,8 @@ namespace Nz
m_soundStreamLoader.RegisterLoader(Loaders::GetSoundStreamLoader_sndfile());
m_soundBufferLoader.RegisterLoader(Loaders::GetSoundBufferLoader_drwav());
m_soundStreamLoader.RegisterLoader(Loaders::GetSoundStreamLoader_drwav());
m_soundBufferLoader.RegisterLoader(Loaders::GetSoundBufferLoader_libvorbis());
m_soundStreamLoader.RegisterLoader(Loaders::GetSoundStreamLoader_libvorbis());
}
Audio::~Audio()