// Copyright (C) 2017 Jérôme Leclercq
// This file is part of the "Nazara Engine - Audio module"
// For conditions of distribution and use, see copyright notice in Config.hpp

#include <memory>
#include <Nazara/Audio/Debug.hpp>

namespace Nz
{
	/*!
	* \brief Creates a new sound buffer from the arguments
	* \return A reference to the newly created sound buffer
	*
	* \param args Arguments for the sound buffer
	*/

	template<typename... Args>
	SoundBufferRef SoundBuffer::New(Args&&... args)
	{
		std::unique_ptr<SoundBuffer> object(new SoundBuffer(std::forward<Args>(args)...));
		object->SetPersistent(false);

		return object.release();
	}
}

#include <Nazara/Audio/DebugOff.hpp>
