All relevant SoundMacros implemented, voice and engine tweaks

This commit is contained in:
Jack Andersen
2016-05-06 11:22:39 -10:00
parent 9860e3859c
commit 708662c23e
10 changed files with 487 additions and 63 deletions

View File

@@ -12,6 +12,15 @@ Voice::Voice(Engine& engine, const AudioGroup& group, ObjectId oid, int vid, boo
: Entity(engine, group, oid), m_vid(vid), m_emitter(emitter)
{}
void Voice::_destroy()
{
Entity::_destroy();
if (m_prevSibling)
m_prevSibling->m_nextSibling = m_nextSibling;
if (m_nextSibling)
m_nextSibling->m_prevSibling = m_prevSibling;
}
size_t Voice::supplyAudio(size_t frames, int16_t* data)
{
}
@@ -20,7 +29,7 @@ Voice* Voice::startSiblingMacro(int8_t addNote, ObjectId macroId, int macroStep)
{
}
bool Voice::loadSoundMacro(ObjectId macroId, int macroStep)
bool Voice::loadSoundMacro(ObjectId macroId, int macroStep, bool pushPc)
{
}