projectM-visualizer / projectm

projectM - Cross-platform Music Visualization Library. Open-source and Milkdrop-compatible.
https://discord.gg/mMrxAqaa3W
GNU Lesser General Public License v2.1
3.22k stars 364 forks source link

Add the ability to control the actual running time from the outside. #740

Closed kblaschke closed 1 week ago

kblaschke commented 8 months ago

Currently, all time values used for rendering, transitions and effects are based on the system clock. This makes it impossible to render presets at a different speed, e.g. faster or slower than real time, which, for example, is important when rendering a video.

The following changes are required to enable applications to control projectM's internal timer:

If the time setting function is called, projectM will solely use the user-provided value until the instance is destroyed. Not updating the time value will visually pause the current preset.

revmischa commented 8 months ago

Yes this would go great with the gst plugin