Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void connect_port(LV2_Handle instance, uint32_t port, void *data_location)
- {
- DGLV2 *dglv2 = (DGLV2 *)instance;
- if(port == 0) {// MIDI in
- dglv2->in->eventPort = (LV2_Atom_Sequence*)data_location;
- } else {// Audio Port
- if(port - 1 < NUM_OUTPUTS) {
- dglv2->out->outputPorts[port - 1].samples = (sample_t*)data_location;
- dglv2->out->outputPorts[port - 1].size = 0;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment