amuse/lib/Voice.cpp

58 lines
1.0 KiB
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)
{
}
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)
{
}
}