Audio: Rewrite audio module
This commit is contained in:
21
include/Nazara/Audio/AudioSource.inl
Normal file
21
include/Nazara/Audio/AudioSource.inl
Normal file
@@ -0,0 +1,21 @@
|
||||
// Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
|
||||
// This file is part of the "Nazara Engine - Audio module"
|
||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||
|
||||
#include <Nazara/Audio/AudioSource.hpp>
|
||||
#include <Nazara/Audio/Debug.hpp>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
inline AudioSource::AudioSource(std::shared_ptr<AudioDevice> device) :
|
||||
m_device(std::move(device))
|
||||
{
|
||||
}
|
||||
|
||||
inline const std::shared_ptr<AudioDevice>& AudioSource::GetAudioDevice() const
|
||||
{
|
||||
return m_device;
|
||||
}
|
||||
}
|
||||
|
||||
#include <Nazara/Audio/DebugOff.hpp>
|
||||
Reference in New Issue
Block a user