2016-05-03 01:16:26 +00:00
|
|
|
#include "amuse/Voice.hpp"
|
|
|
|
#include "amuse/IBackendVoice.hpp"
|
|
|
|
|
|
|
|
namespace amuse
|
|
|
|
{
|
|
|
|
|
2016-05-06 05:19:19 +00:00
|
|
|
Voice::Voice(Engine& engine, const AudioGroup& group, int vid, bool emitter)
|
|
|
|
: Entity(engine, group), m_vid(vid), m_emitter(emitter)
|
|
|
|
{}
|
|
|
|
|
|
|
|
Voice::Voice(Engine& engine, const AudioGroup& group, ObjectId oid, int vid, bool emitter)
|
|
|
|
: Entity(engine, group, oid), m_vid(vid), m_emitter(emitter)
|
|
|
|
{}
|
2016-05-03 01:16:26 +00:00
|
|
|
|
2016-05-06 21:22:39 +00:00
|
|
|
void Voice::_destroy()
|
|
|
|
{
|
|
|
|
Entity::_destroy();
|
|
|
|
if (m_prevSibling)
|
|
|
|
m_prevSibling->m_nextSibling = m_nextSibling;
|
|
|
|
if (m_nextSibling)
|
|
|
|
m_nextSibling->m_prevSibling = m_prevSibling;
|
|
|
|
}
|
|
|
|
|
2016-05-03 01:16:26 +00:00
|
|
|
size_t Voice::supplyAudio(size_t frames, int16_t* data)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-05-06 05:19:19 +00:00
|
|
|
Voice* Voice::startSiblingMacro(int8_t addNote, ObjectId macroId, int macroStep)
|
2016-05-03 05:16:37 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-05-06 21:22:39 +00:00
|
|
|
bool Voice::loadSoundMacro(ObjectId macroId, int macroStep, bool pushPc)
|
2016-05-03 05:16:37 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-05-03 01:16:26 +00:00
|
|
|
}
|