Esempio n. 1
0
 CropStream *CropStream::clone() {
     CropStream *c = new CropStream();
     c->set_source_start(source_start());
     c->set_source_end(source_end());
     c->set_source(source() ? source()->clone() : NULL);
     return c;
   }
Esempio n. 2
0
 void CropStream::inspect_aux(int level, std::stringstream *ss) {
   MuStream::inspect_aux(level, ss);
   inspect_indent(level, ss);
   *ss << "source_start() = " << source_start() << std::endl;
   inspect_indent(level, ss);
   *ss << "source_end() = " << source_end() << std::endl;
   SingleSourceStream::inspect_aux(level, ss);
 }
Esempio n. 3
0
void osc_wire_t::event_start(unsigned seq, const piw::data_nb_t &id, const piw::xevent_data_buffer_t &b)
{
    output_ = piw::xevent_data_buffer_t(OUT_MASK,PIW_DATAQUEUE_SIZE_NORM);

    input_ = b.iterator();

    unsigned long long t = id.time();
    last_from_ = t;

	piw::data_nb_t d;
	if(input_->latest(IN_KEY,d,t))
	{
		process(IN_KEY,d,t);
	}

    source_start(seq,id,output_);

    root_->add_ticker(this);
}
Esempio n. 4
0
light_wire_t::light_wire_t(	osc_pad_t::impl_t *impl) : event_data_source_real_t(piw::pathone(1,0)), root_(impl)
{
	unsigned long long t = piw::tsd_time();
	output_ = piw::xevent_data_buffer_t(OUT_MASK,PIW_DATAQUEUE_SIZE_TINY);
	source_start(0,piw::pathone_nb(1,t),output_);
}
Esempio n. 5
0
void palm_wire_t::start()
{
    add_palm_position(0.f, 0.f, 0.f);
    source_start(0,piw::pathone_nb(id_,time_),buffer_);
}