audio-blockEngine/eaudiofx/base/GeneratorSignal.cpp

28 lines
536 B
C++

/**
* @author Edouard DUPIN
*
* @copyright 2014, Edouard DUPIN, all right reserved
*
* @license BSD v3 (see license file)
*/
#include <eaudiofx/base/GeneratorSignal.h>
#include <eaudiofx/core/BufferAudioRaw.h>
eaudiofx::GeneratorSignal::GeneratorSignal(void) :
m_phase(0) {
// set output :
m_io.insert(
std::pair<std::string, eaudiofx::Block::IOProperty>(
"out",
eaudiofx::Block::IOProperty(
eaudiofx::Block::ioOutput,
"",
new eaudiofx::BufferAudioRaw(*this, 48000, 2)
) ) );
}