amuse/lib/Voice.cpp

42 lines
932 B
C++
Raw Normal View History

#include "amuse/Voice.hpp"
2016-05-07 22:10:57 +00:00
#include "amuse/Submix.hpp"
#include "amuse/IBackendVoice.hpp"
namespace amuse
{
void Voice::_destroy()
{
Entity::_destroy();
2016-05-07 22:10:57 +00:00
if (m_submix)
m_submix->m_activeVoices.erase(this);
}
Voice::Voice(Engine& engine, const AudioGroup& group, int vid, bool emitter, Submix* smx)
: Entity(engine, group), m_vid(vid), m_emitter(emitter), m_submix(smx)
{
if (m_submix)
m_submix->m_activeVoices.insert(this);
}
Voice::Voice(Engine& engine, const AudioGroup& group, ObjectId oid, int vid, bool emitter, Submix* smx)
: Entity(engine, group, oid), m_vid(vid), m_emitter(emitter), m_submix(smx)
{
if (m_submix)
m_submix->m_activeVoices.insert(this);
}
size_t Voice::supplyAudio(size_t frames, int16_t* data)
{
}
2016-05-07 22:10:57 +00:00
Voice* Voice::startChildMacro(int8_t addNote, ObjectId macroId, int macroStep)
{
}
bool Voice::loadSoundMacro(ObjectId macroId, int macroStep, bool pushPc)
{
}
}