Quote:
Originally Posted by schwa
I am not sure I am understanding the report correctly, but if your plugin has say 1024 samples of latency, and you are passing input MIDI events directly through to output, then that should mean that the output MIDI events will play back 1024 samples before the output audio. However, playback for events that are output by the plugin within the initial 1024 samples is not well defined. Those events might be discarded or delayed, because the plugin has reported that it won't be providing output until 1024 samples of input has been received. In other words, PDC can be used to change relative timing, but not absolute timing.
|
In my plugin, I am not doing any audio processing, I am only taking midi as input, and then adjusting the timing, and sending it as output.
I guess my confusion is, what procedure should I follow to negatively delay midi?
This is what I expected it would work like: I set the plugin latency to report X samples of latency, I grab events from the input events buffer and pass them immediately to the output events buffer, the events then show up X samples before they were received in the timeline. This is not how it is currently functioning.
How I am achieving what I want currently: I set the plugin latency to report X samples of latency, I grab events from the input events buffer and subtract X samples from the header time, which integer underflows it because it is a uint32_t, and pass them to the output events buffer, the events then show up X samples before they were received in the timeline.