Guest User

Untitled

a guest
Dec 16th, 2014
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. Fifths.c Atom-> Atom port setup:
  2.  
  3. // Write an empty Sequence header to the output
  4. lv2_atom_sequence_clear(self->out_port);
  5. self->out_port->atom.type = self->in_port->atom.type;
  6.  
  7. Sampler.c Atom output setup:
  8.  
  9. // Set up forge to write directly to notify output port.
  10. const uint32_t notify_capacity = self->notify_port->atom.size;
  11. lv2_atom_forge_set_buffer(&self->forge,
  12. (uint8_t*)self->notify_port,
  13. notify_capacity);
  14.  
  15. // Start a sequence in the notify output port.
  16. lv2_atom_forge_sequence_head(&self->forge, &self->notify_frame, 0);
  17.  
  18. Why are they different?
  19. 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