2016-05-03 01:16:26 +00:00
|
|
|
#include "amuse/Voice.hpp"
|
2016-05-07 22:10:57 +00:00
|
|
|
#include "amuse/Submix.hpp"
|
2016-05-03 01:16:26 +00:00
|
|
|
#include "amuse/IBackendVoice.hpp"
|
|
|
|
|
|
|
|
namespace amuse
|
|
|
|
{
|
|
|
|
|
2016-05-06 21:22:39 +00:00
|
|
|
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);
|
2016-05-06 21:22:39 +00:00
|
|
|
}
|
|
|
|
|
2016-05-03 01:16:26 +00:00
|
|
|
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)
|
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-09 07:22:58 +00:00
|
|
|
void Voice::keyOff()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void Voice::message(int32_t val)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void Voice::setVolume(float vol)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void Voice::setPanning(float pan)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-05-03 01:16:26 +00:00
|
|
|
}
|