2016-05-03 01:16:26 +00:00
|
|
|
#include "amuse/AudioGroupData.hpp"
|
|
|
|
|
|
|
|
namespace amuse
|
|
|
|
{
|
|
|
|
|
|
|
|
IntrusiveAudioGroupData::~IntrusiveAudioGroupData()
|
|
|
|
{
|
2016-05-18 00:59:44 +00:00
|
|
|
if (m_owns)
|
|
|
|
{
|
2016-06-30 19:30:13 +00:00
|
|
|
delete[] m_pool;
|
|
|
|
delete[] m_proj;
|
|
|
|
delete[] m_sdir;
|
|
|
|
delete[] m_samp;
|
2016-05-18 00:59:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
IntrusiveAudioGroupData::IntrusiveAudioGroupData(IntrusiveAudioGroupData&& other)
|
2016-06-04 02:34:35 +00:00
|
|
|
: AudioGroupData(other.m_proj, other.m_projSz, other.m_pool, other.m_poolSz,
|
|
|
|
other.m_sdir, other.m_sdirSz, other.m_samp, other.m_sampSz,
|
|
|
|
other.m_fmt, other.m_absOffs)
|
2016-05-18 00:59:44 +00:00
|
|
|
{
|
|
|
|
m_owns = other.m_owns;
|
|
|
|
other.m_owns = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
IntrusiveAudioGroupData& IntrusiveAudioGroupData::operator=(IntrusiveAudioGroupData&& other)
|
|
|
|
{
|
2016-05-18 01:01:37 +00:00
|
|
|
if (m_owns)
|
|
|
|
{
|
2016-06-30 19:30:13 +00:00
|
|
|
delete[] m_pool;
|
|
|
|
delete[] m_proj;
|
|
|
|
delete[] m_sdir;
|
|
|
|
delete[] m_samp;
|
2016-05-18 01:01:37 +00:00
|
|
|
}
|
|
|
|
|
2016-05-18 00:59:44 +00:00
|
|
|
m_owns = other.m_owns;
|
|
|
|
other.m_owns = false;
|
|
|
|
|
|
|
|
m_proj = other.m_proj;
|
|
|
|
m_pool = other.m_pool;
|
|
|
|
m_sdir = other.m_sdir;
|
|
|
|
m_samp = other.m_samp;
|
2016-05-29 06:53:45 +00:00
|
|
|
m_fmt = other.m_fmt;
|
2016-05-29 18:22:20 +00:00
|
|
|
m_absOffs = other.m_absOffs;
|
2016-05-18 00:59:44 +00:00
|
|
|
|
|
|
|
return *this;
|
2016-05-03 01:16:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|