Audio: Commit missing files

This commit is contained in:
Jérôme Leclercq 2021-05-24 19:12:00 +02:00
parent f0192c3b98
commit 4bcb63d776
3 changed files with 21 additions and 3 deletions

View File

@ -39,7 +39,9 @@ namespace Nz
Vector3f GetListenerPosition() const;
Quaternionf GetListenerRotation() const;
Vector3f GetListenerVelocity() const;
SoundBufferLoader& GetSoundBufferLoader();
const SoundBufferLoader& GetSoundBufferLoader() const;
SoundStreamLoader& GetSoundStreamLoader();
const SoundStreamLoader& GetSoundStreamLoader() const;
float GetSpeedOfSound() const;

View File

@ -10,9 +10,7 @@
#include <Nazara/Prerequisites.hpp>
#include <Nazara/Audio/Config.hpp>
#include <Nazara/Audio/Enums.hpp>
#include <Nazara/Core/ObjectRef.hpp>
#include <Nazara/Core/ObjectLibrary.hpp>
#include <Nazara/Core/RefCounted.hpp>
#include <Nazara/Core/Resource.hpp>
#include <Nazara/Core/ResourceLoader.hpp>
#include <Nazara/Core/ResourceManager.hpp>
@ -37,7 +35,7 @@ namespace Nz
struct SoundBufferImpl;
class NAZARA_AUDIO_API SoundBuffer : public RefCounted, public Resource
class NAZARA_AUDIO_API SoundBuffer : public Resource
{
friend Sound;

View File

@ -147,6 +147,15 @@ namespace Nz
return velocity;
}
/*!
* \brief Gets the default SoundBuffer loader
* \return A reference to the default SoundBuffer loader
*/
SoundBufferLoader& Audio::GetSoundBufferLoader()
{
return m_soundBufferLoader;
}
/*!
* \brief Gets the default SoundBuffer loader
* \return A constant reference to the default SoundBuffer loader
@ -156,6 +165,15 @@ namespace Nz
return m_soundBufferLoader;
}
/*!
* \brief Gets the default SoundStream loader
* \return A reference to the default SoundStream loader
*/
SoundStreamLoader& Audio::GetSoundStreamLoader()
{
return m_soundStreamLoader;
}
/*!
* \brief Gets the default SoundStream loader
* \return A constant reference to the default SoundStream loader