Skip to content

feature request: callbacks still needed #732

@mfisher31

Description

@mfisher31

A callback is needed for for the following things:

  • reset (or whatever name you want), I believe there is a parallel with VST/AU yea? in LogicPro this callback is called when the transport is started and when tracks are changed from disabled to enabled. I think different daws might deal with this slightly differently. But in any case we need to run some stuff when playback is started and possibly some other situations such as activating the track hosting Element.

  • latency - way for the host (element) to ask for the Lua script reported latency. This could also be put into the layout structure I suppose but there are use cases where the script might be updating the value as it is used, so Element needs to check for that before playback.

  • idle - an idle callback would be useful for putting non-realtime-thread operations someplace on lower priority, etc. logging and tracing for example. I presume the UI scripting is handled that way off the realtime thread, but we might want to put other tasks out of realtime thread...maybe that can be done in the UI section, not sure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions