Guest User

Untitled

a guest
Jul 27th, 2015
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. void connect_port(LV2_Handle instance, uint32_t port, void *data_location)
  2. {
  3. DGLV2 *dglv2 = (DGLV2 *)instance;
  4.  
  5. if(port == 0) {// MIDI in
  6. dglv2->in->eventPort = (LV2_Atom_Sequence*)data_location;
  7. } else {// Audio Port
  8. if(port - 1 < NUM_OUTPUTS) {
  9. dglv2->out->outputPorts[port - 1].samples = (sample_t*)data_location;
  10. dglv2->out->outputPorts[port - 1].size = 0;
  11. }
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment