Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Fifths.c Atom-> Atom port setup:
- // Write an empty Sequence header to the output
- lv2_atom_sequence_clear(self->out_port);
- self->out_port->atom.type = self->in_port->atom.type;
- Sampler.c Atom output setup:
- // Set up forge to write directly to notify output port.
- const uint32_t notify_capacity = self->notify_port->atom.size;
- lv2_atom_forge_set_buffer(&self->forge,
- (uint8_t*)self->notify_port,
- notify_capacity);
- // Start a sequence in the notify output port.
- lv2_atom_forge_sequence_head(&self->forge, &self->notify_frame, 0);
- Why are they different?
- In Sampler, notify_frame is a struct member: it is re-used. Problem with writing multiple Atoms per run()?
Advertisement
Add Comment
Please, Sign In to add comment