mirror of
https://github.com/AxioDL/amuse.git
synced 2025-12-08 21:17:49 +00:00
More fixes, better lifetime management
This commit is contained in:
@@ -1,14 +1,21 @@
|
||||
#include "amuse/Emitter.hpp"
|
||||
#include "amuse/Voice.hpp"
|
||||
#include "amuse/Engine.hpp"
|
||||
|
||||
namespace amuse
|
||||
{
|
||||
|
||||
Emitter::Emitter(Engine& engine, const AudioGroup& group, Voice& vox)
|
||||
: Entity(engine, group, vox.getObjectId()), m_vox(vox)
|
||||
Emitter::Emitter(Engine& engine, const AudioGroup& group, std::shared_ptr<Voice>&& vox)
|
||||
: Entity(engine, group, vox->getObjectId()), m_vox(std::move(vox))
|
||||
{
|
||||
}
|
||||
|
||||
void Emitter::_destroy()
|
||||
{
|
||||
Entity::_destroy();
|
||||
m_engine._destroyVoice(m_vox.get());
|
||||
}
|
||||
|
||||
void Emitter::setPos(const Vector3f& pos)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user